private static boolean hasOnlyClosureParams(PsiMethod method) {
    final PsiParameter[] params = method.getParameterList().getParameters();
    for (PsiParameter param : params) {
      final PsiType type = param.getType();
      if (!TypesUtil.isClassType(type, GroovyCommonClassNames.GROOVY_LANG_CLOSURE)) {
        return false;
      }
    }
    return params.length > 0;
  }
private static boolean hasOnlyClosureParams(PsiMethod method)