private static boolean startsWithWhitespace(@NotNull CharSequence text, @NotNull TextRange range) {
        if (range.isEmpty()) {
          return false;
        }
        final char c = text.charAt(range.getStartOffset());
        return c == ' ' || c == '\t';
      }
private static boolean startsWithWhitespace(@NotNull CharSequence text, @NotNull TextRange range)