@Override
public void parse(Element element, Function<TypeElement, Type> storage) {
final ExecutableElement method = (ExecutableElement) element;
final TypeElement typeElement = (TypeElement) method.getEnclosingElement();
final FirstClass annotation = method.getAnnotation(FirstClass.class);
final ClosureName delegate = new ClosureName(method.getSimpleName().toString());;
final ClosureName name;
if (annotation.name().isEmpty()) {
name = delegate;
} else {
name = new ClosureName(annotation.name());
}
final List<? extends VariableElement> parameters = method.getParameters();
final boolean isStatic = method.getModifiers().contains(Modifier.STATIC);