private boolean isIllegalVarargMigration() {
      if (!(getMigrationType() instanceof PsiEllipsisType)) return false;
      for (PsiElement root : myRoots) {
        if (!(root instanceof PsiParameter parameter)) return true;
        PsiElement scope = parameter.getDeclarationScope();
        if (!(scope instanceof PsiMethod method)) return true;
        PsiParameterList parameterList = method.getParameterList();
        PsiParameter lastParameter = parameterList.getParameter(parameterList.getParametersCount() - 1);
        if (!parameter.equals(lastParameter)) return true;
      }
      return false;
    }
private boolean isIllegalVarargMigration()