public static @NotNull String getDebugText(@NotNull Component c) {
    StringBuilder builder = new StringBuilder();
    getAllTextsRecursively(c, builder);
    return builder.toString();
  }
public static @NotNull String getDebugText(@NotNull Component c)