private @NotNull PsiElementProcessor<PsiElement> getElementProcessor(@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;
    };
  }
private @NotNull PsiElementProcessor<PsiElement> getElementProcessor(@NotNull MouseEvent event)