MinusculeMatcher (@NotNull String pattern) { pattern = "*" + StringUtil.replace(StringUtil.replace(pattern, "\\", "*\\*"), "/", "*/*"); return NameUtil.buildMatcher(pattern) .withCaseSensitivity(NameUtil.MatchingCaseSensitivity.NONE) .preferringStartMatches() .build(); }