void () { PsiDocumentManager docManager = PsiDocumentManager.getInstance(getProject()); if (docManager instanceof PsiDocumentManagerBase && !((PsiDocumentManagerBase)docManager).isCommitInProgress() && !(myViewProvider instanceof FreeThreadedFileViewProvider)) { CheckUtil.checkWritable(this); } }