private void doCommit(@NotNull Document document, @NotNull PsiFile psiFile) {
    assert !isCommitInProgress() : "Do not call commitDocument() from inside PSI change listener";
    executeInsideCommit(() -> myDocumentCommitProcessor.commitSynchronously(document, myProject, psiFile));
    assert !isInUncommittedSet(document) : "Document :" + document;
    runAfterCommitActions(document);
  }
private void doCommit(@NotNull Document document, @NotNull PsiFile psiFile)