boolean (@NotNull String name, @NotNull Editor editor) { Project project = editor.getProject(); if (project != null) { PsiElement element = qualifiedNameToElement(name, project); if (element instanceof Navigatable navigatable) { if (navigatable.canNavigate()) { navigatable.navigate(true); return true; } } } return false; }