public static @NotNull String loadTextAndClose(@NotNull InputStream stream) throws IOException {
    return loadTextAndClose(new InputStreamReader(stream, StandardCharsets.UTF_8));
  }
public static @NotNull String loadTextAndClose(@NotNull InputStream stream)