139140141142143144145146147148149
PsiDocumentManager.getInstance(myProject).commitDocument(document); } }; final LookupImpl lookup = (LookupImpl) LookupManager.getActiveLookup(myEditor); if (lookup != null) { lookup.performGuardedChange(runnable); } else { runnable.run(); } }