private @NotNull DocumentContent createDocumentFromBytes(@Nullable Project project,
                                                           byte @NotNull [] content,
                                                           @NotNull FilePath filePath,
                                                           @Nullable Charset defaultCharset) {
    return readOnlyDocumentContent(project)
      .contextByFilePath(filePath)
      .withDefaultCharset(defaultCharset)
      .buildFromBytes(content);
  }
private @NotNull DocumentContent createDocumentFromBytes(@Nullable Project project,
                                                           byte @NotNull [] content,
                                                           @NotNull FilePath filePath,
                                                           @Nullable Charset defaultCharset)