PsiElementProcessor<PsiElement> (@NotNull MouseEvent event) { return element -> { if (myNavigationHandler != null) { myNavigationHandler.navigate(event, element); } else { Navigatable descriptor = EditSourceUtil.getDescriptor(element); if (descriptor != null && descriptor.canNavigate()) { descriptor.navigate(true); } } return true; }; }