@NotNull
  @Unmodifiable
  public static List<PsiTypeElement> getParameterTypeElements(@NotNull PsiParameter parameter) {
    PsiTypeElement typeElement = parameter.getTypeElement();
    return typeElement != null && typeElement.getType() instanceof PsiDisjunctionType
           ? PsiTreeUtil.getChildrenOfTypeAsList(typeElement, PsiTypeElement.class)
           : Collections.singletonList(typeElement);
  }
@NotNull
  @Unmodifiable
  public static List<PsiTypeElement> getParameterTypeElements(@NotNull PsiParameter parameter)