void (PsiElement element) { myPanel.getModel().updateModel(element, null); if (element instanceof Navigatable navigatable) { if (navigatable.canNavigate()) { ((Navigatable)element).navigate(true); } } myPanel.hideHint(); }