private static boolean containsOnlyWhitespaces(int start, int end, @NotNull String text) {
    for (int i = start; i < end; i++) {
      if (!Character.isWhitespace(text.charAt(i))) return false;
    }
    return true;
  }
private static boolean containsOnlyWhitespaces(int start, int end, @NotNull String text)