protected void completePrimaryElementsWithStubAndOriginalElements(@NotNull List<PsiElement> result) {
    List<PsiElement> additionalElements = new ArrayList<>();
    for (PsiElement element: result) {
      PsiElement stubElement = tryGetStubElement(element);
      if (stubElement != null) {
        additionalElements.add(stubElement);
      }

      PsiElement originalElement = tryGetOriginalElement(element);
      if (originalElement != null) {
        additionalElements.add(originalElement);
      }
    }
    result.addAll(additionalElements);
  }
protected void completePrimaryElementsWithStubAndOriginalElements(@NotNull List<PsiElement> result)