int (@NotNull CharSequence text, int start, int end) { for (CharSequence whiteSpace : myWhiteSpaces) { if (end - start >= whiteSpace.length() && Strings.startsWith(text, start, whiteSpace)) { return start + whiteSpace.length(); } } return start; }