private static PsiElement getOriginalElement(@NotNull DocumentationCollector collector, PsiElement targetElement) {
    return collector instanceof MyCollector ? ((MyCollector)collector).originalElement : targetElement;
  }
private static PsiElement getOriginalElement(@NotNull DocumentationCollector collector, PsiElement targetElement)