int (@NotNull CharSequence text, int start, int end) { for (; start < end; start++) { char c = text.charAt(start); if (c != ' ' && c != '\t' && c != '\n' && c != '\r') { return start; } } return -1; }