public static int findFirstNonSpaceOffsetInRange(@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;
  }
public static int findFirstNonSpaceOffsetInRange(@NotNull CharSequence text, int start, int end)