public MetadataAnnotatedElement visitExecutable(ExecutableType executableType, MetadataAnnotatedElement annotatedElement) {
MetadataMethod method = (MetadataMethod) annotatedElement;
// Set the parameters.
for (TypeMirror parameter : executableType.getParameterTypes()) {
method.addParameter(getRawClass(parameter.accept(stringTypeVisitor, null)));
}
// Visit the return type (will set the type and generic types).
executableType.getReturnType().accept(this, method);
method.setReturnType(method.getType());