private void parse(ExecutableElement method, Type type) {
final TypeElement typeElement = (TypeElement) method.getEnclosingElement();
final Functional functional = method.getAnnotation(Functional.class);
final ClosureName name = new StringClosureName(method.getSimpleName().toString());
final Name parameterType = new StringName(typeElement.getQualifiedName().toString());
final Closure closure;
if (method.getReturnType().getKind() == TypeKind.BOOLEAN) {
closure = new BaseClosure(name, parameterType, functional.nullsafe());