void (@NotNull PsiFile file) { // Select element in the tree ApplicationManager.getApplication().invokeLater(() -> { if (myModel != null) { myModel.select(file, myTree, path -> { }); } }, ModalityState.stateForComponent(getWindow())); }