type = controller.getTrees().getTypeMirror(methodOrLambdaPath);
if (type != null && type.getKind() == TypeKind.DECLARED) {
ExecutableType descType = controller.getTypeUtilities().getDescriptorType((DeclaredType) type);
if (descType != null) {
return Collections.singleton(descType.getReturnType());
return getMatchingArgumentTypes(tm, controller.getElementUtilities().getMembers(tm, acceptor), name, args, targs, midEl, midTM, controller.getTypes(), controller.getTypeUtilities());
return getMatchingArgumentTypes(superclass, controller.getElementUtilities().getMembers(superclass, acceptor), INIT, args, targs, midEl, midTM, controller.getTypes(), controller.getTypeUtilities());
return getMatchingArgumentTypes(enclClass != null ? enclClass.asType() : null, controller.getElementUtilities().getLocalMembersAndVars(scope, acceptor), THIS_KEYWORD.equals(name) ? INIT : name, args, targs, midEl, midTM, controller.getTypes(), controller.getTypeUtilities());
return getMatchingArgumentTypes(tm, controller.getElementUtilities().getMembers(tm, acceptor), INIT, args, targs, ncElem, ncType, controller.getTypes(), controller.getTypeUtilities());
ExecutableType descType = controller.getTypeUtilities().getDescriptorType((DeclaredType) type);
if (descType != null) {
return Collections.singleton(descType.getReturnType());