public static Predicate<String> startsWithIgnoreCase(String prefix) {
        return string -> {
            if (string.length() < prefix.length()) {
                return false;
            }
            return string.regionMatches(true, 0, prefix, 0, prefix.length());
        };
    }
A collection of predicate utilities used mostly in command classes
common/src/main/java/me/lucko/luckperms/common/util/Predicates.java