Matcher (@NotNull String pattern, int exactPrefixLen, boolean allowToUpper, boolean allowToLower) { MatchingCaseSensitivity options = !allowToLower && !allowToUpper ? MatchingCaseSensitivity.ALL : exactPrefixLen > 0 ? MatchingCaseSensitivity.FIRST_LETTER : MatchingCaseSensitivity.NONE; return buildMatcher(pattern, options); }