void () { String text = myEditor.getDocument().getText(); myEditor.getSelectionModel().removeSelection(); myLastParsedText = text; myLastParsedTextHashCode = text.hashCode(); myNewDocumentHashCode = myLastParsedTextHashCode; PsiElement rootElement = parseText(text); setOriginalFiles(rootElement); focusTree(); myTreeStructure.setRootPsiElement(rootElement); myStructureTreeModel.invalidateAsync(); myPsiTree.setRootVisible(true); myPsiTree.expandRow(0); myPsiTree.setRootVisible(false); myBlockTree.reloadTree(rootElement, text); myStubTree.reloadTree(rootElement, text); myRefsResolvedCache.clear(); }