private static int getIndentWhitespaces(@NotNull String line) {
    int indentWhitespaces = 0;
    for (int i = 0; i < line.length(); i++) {
      char c = line.charAt(i);
      switch (c) {
        case ' ', '\t' -> indentWhitespaces++;
        case '\n' -> {
          return Integer.MAX_VALUE;
        }
        default -> {
          return indentWhitespaces;
        }
      }
    }
    return Integer.MAX_VALUE;
  }
private static int getIndentWhitespaces(@NotNull String line)