private boolean isMainMethodFirstUntypedParameter() {
    if (getTypeElementGroovy() != null) return false;
    if (!(getParent() instanceof GrParameterList parameterList)) return false;
    if (isOptional()) return false;

    if (!(parameterList.getParent() instanceof GrMethod method)) return false;

    return PsiImplUtil.isMainMethod(method);
  }
private boolean isMainMethodFirstUntypedParameter()