private static PsiType getTypeForComparison(PsiParameter parameter) {
    PsiType type = parameter.getType();
    return type instanceof PsiEllipsisType ellipsisType ? ellipsisType.getComponentType() : type;
  }
private static PsiType getTypeForComparison(PsiParameter parameter)