void () { if (getModule().isDisposed()) { return; } Project project = getProject(); if (project.isDisposed()) { return; } LOG.debug("Synchronizing GUI editor " + myFile.getName() + " to document"); PsiDocumentManager.getInstance(project).commitDocument(myDocument); readFromFile(myKeepSelection); }