@Nullable
  @TestOnly
  public static PsiElement findTargetElement(Project project, Editor editor, int offset) {
    final PsiElement[] targets = findAllTargetElements(project, editor, offset);
    return targets.length == 1 ? targets[0] : null;
  }
@Nullable
  @TestOnly
  public static PsiElement findTargetElement(Project project, Editor editor, int offset)