@Nullable
  private static PsiElement getElement(@NotNull DataContext dataContext,
                                       @Nullable Editor editor,
                                       @Nullable PsiElement originalElement) {
    return editor == null || originalElement == null
                     ? CommonDataKeys.PSI_ELEMENT.getData(dataContext)
                     : DocumentationManager.getInstance(originalElement.getProject())
                       .findTargetElement(editor, originalElement.getContainingFile(), originalElement);
  }
@Nullable
  private static PsiElement getElement(@NotNull DataContext dataContext,
                                       @Nullable Editor editor,
                                       @Nullable PsiElement originalElement)