static String anonFunctionHeader(Type requiredType, Unit unit) {
   StringBuilder text = new StringBuilder();
   text.append("(");
   boolean first = true;
   char c = 'a';
   List<Type> argTypes = unit.getCallableArgumentTypes(requiredType);
   for (Type paramType : argTypes) {
     if (first) {
       first = false;
     } else {
       text.append(", ");
     }
     text.append(paramType.asSourceCodeString(unit)).append(" ").append(c++);
   }
   text.append(")");
   return text.toString();
 }