public @NotNull WriteAccessStatus requestWritingStatus(@NotNull Document document, @Nullable Project project) {
    return requestWriting(document, project) ? WriteAccessStatus.WRITABLE : WriteAccessStatus.NON_WRITABLE;
  }
public @NotNull WriteAccessStatus requestWritingStatus(@NotNull Document document, @Nullable Project project)