private static boolean containsParametersWithDeclaredType(GrParameter[] parameters) {
    return ContainerUtil.find(parameters, parameter -> parameter.getDeclaredType() != null) != null;
  }
private static boolean containsParametersWithDeclaredType(GrParameter[] parameters)