private void doUpdatePsi() {
    String text = myEditor.getDocument().getText();
    myEditor.getSelectionModel().removeSelection();

    myLastParsedText = text;
    myLastParsedTextHashCode = text.hashCode();
    myNewDocumentHashCode = myLastParsedTextHashCode;
    PsiElement rootElement = parseText(text);
    setOriginalFiles(rootElement);
    myTreeStructure.setRootPsiElement(rootElement);

    myStructureTreeModel.invalidateAsync();
    myPsiTree.setRootVisible(true);
    myPsiTree.expandRow(0);
    myPsiTree.setRootVisible(false);


    myBlockTree.reloadTree(rootElement, text);
    myStubTree.reloadTree(rootElement, text);

    myRefsResolvedCache.clear();
    myPsiViewerPropertiesTabViewModel.reset();
  }
private void doUpdatePsi()