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

public static int findFirstNonSpaceOffsetInRange ( @ NotNull CharSequence text , int start , int end ) { for ( ; start < end ; start ++ ) { char c = text . charAt ( start ) ; if ( c != ' ' && c != '\t' ) { return start ; } } return - 1 ; }
tries to find non white space symbol at the given range at the given document .
