boolean (PsiElement target) { Navigatable descriptor = target instanceof Navigatable ? (Navigatable)target : EditSourceUtil.getDescriptor(target); if (descriptor != null && descriptor.canNavigate()) { navigateToElement(descriptor); return true; } return false; }