public String findMessage(String substring) {
            return messages.stream().filter(message -> message.contains(substring)).findFirst().orElse(null);
        }
Returns the first message containing the given string, or null if none
config-model/src/test/java/com/yahoo/schema/processing/RankingExpressionTypeResolverTestCase.java