@Override
  public PsiElement @NotNull [] getPrimaryElements() {
    List<PsiElement> result = new ArrayList<>();
    if (myAllElements != null) {
      result.addAll(myAllElements);
    }
    else {
      result.add(myPsiElement);
    }

    completePrimaryElementsWithStubAndOriginalElements(result);

    return result.toArray(PsiElement.EMPTY_ARRAY);
  }
@Override
  public PsiElement @NotNull [] getPrimaryElements()