private static @Nullable PsiElement customElement(
    @NotNull Editor editor,
    @Nullable PsiFile file,
    int offset,
    @Nullable PsiElement contextElement
  ) {
    if (file == null) {
      return null;
    }
    return getProviderFromElement(file).getCustomDocumentationElement(editor, file, contextElement, offset);
  }
private static @Nullable PsiElement customElement(
    @NotNull Editor editor,
    @Nullable PsiFile file,
    int offset,
    @Nullable PsiElement contextElement
  )