public static @NotNull String loadTextAndClose(@NotNull Reader reader) throws IOException {
    try {
      return new String(adaptiveLoadText(reader));
    }
    finally {
      reader.close();
    }
  }
public static @NotNull String loadTextAndClose(@NotNull Reader reader)