void (final @NotNull Runnable reloadAction) { Boolean suppress = SUPPRESS_RELOAD.get(); if (suppress == Boolean.TRUE) return; FileDocumentManager.getInstance().saveAllDocuments(); // consider all files as unmodified ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> suppressReloadDuring(reloadAction), IdeBundle.message("progress.title.reload.files"), false, myProject); }