void () { if (myProject != null && !myProject.isDisposed()) { PsiDocumentManager.getInstance(myProject).performForCommittedDocument(myDocument, new Runnable() { @Override public void run() { CodeStyleSettingsManager.updateDocumentIndentOptions(myProject, myDocument); } }); } }