boolean (@NotNull String str, int startOffset, @NotNull String prefix) { int stringLength = str.length(); int prefixLength = prefix.length(); return stringLength >= prefixLength && str.regionMatches(true, startOffset, prefix, 0, prefixLength); }