BooleanRunnable (@NotNull CommitTask task, @NotNull PsiDocumentManagerBase documentManager) { return () -> { if (!task.isStillValid() || documentManager.getCachedViewProvider(task.document) != null) { return false; } documentManager.handleCommitWithoutPsi(task.document); return true; }; }