public static Map<String, NamedArgumentDescriptor> find(GrVariable variable) {
    final GrExpression initializerGroovy = variable.getInitializerGroovy();

    if (!(initializerGroovy instanceof GrFunctionalExpression expression)) {
      return Collections.emptyMap();
    }

    final GrParameter[] parameters = expression.getAllParameters();
    if (parameters.length == 0) return Collections.emptyMap();

    GrParameter parameter = parameters[0];

    GrNamedArgumentSearchVisitor visitor = new GrNamedArgumentSearchVisitor(parameter.getName());
    expression.accept(visitor);
    return visitor.getResult();
  }
public static Map<String, NamedArgumentDescriptor> find(GrVariable variable)