docs: public static String readFile(InputStream file) {
          try (BufferedInputStream stream = new BufferedInputStream(file)) {
              byte[] buff = new byte[1024];
              StringBuilder builder = new StringBuilder();
              int read;
              while ((read = stream.read(buff)) != -1) {
                  builder.append(new String(buff, 0, read, StandardCharsets.UTF_8));
              }
              return builder.toString();
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }