public static boolean fileForDocumentCheckedOutSuccessfully(@NotNull Document document, @NotNull Project project) {
    return getInstance().requestWriting(document, project);
  }
public static boolean fileForDocumentCheckedOutSuccessfully(@NotNull Document document, @NotNull Project project)