private static @Nullable PsiElement fromTargetUtil(
    @NotNull Editor editor,
    int offset,
    @Nullable PsiElement contextElement
  ) {
    TargetElementUtil util = TargetElementUtil.getInstance();
    PsiElement element = util.findTargetElement(editor, util.getAllAccepted(), offset);
    if (element == null && contextElement == null) {
      return null;
    }
    // Allow context doc over xml tag content
    PsiElement adjusted = util.adjustElement(editor, util.getAllAccepted(), element, contextElement);
    return adjusted != null ? adjusted : element;
  }
private static @Nullable PsiElement fromTargetUtil(
    @NotNull Editor editor,
    int offset,
    @Nullable PsiElement contextElement
  )