private static @NotNull String loadText(InputStream stream) {
        if (stream != null) {
          try (InputStream inputStream = CharsetToolkit.inputStreamSkippingBOM(stream)) {
            return new String(inputStream.readAllBytes(), StandardCharsets.UTF_8);
          }
          catch (IOException e) {
            LOG.info(e);
          }
        }
        return "";
      }
private static @NotNull String loadText(InputStream stream)