java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/MethodCallExprContext.java
@Override
    public Optional<ResolvedType> solveGenericType(String name, TypeSolver typeSolver) {
        if(wrappedNode.getScope().isPresent()){
            ResolvedType typeOfScope = JavaParserFacade.get(typeSolver).getType(wrappedNode.getScope().get());
            Optional<ResolvedType> res = typeOfScope.asReferenceType().getGenericParameterByName(name);
            return res;
        } else{
            return Optional.empty();
        }
    }
@Override
    public Optional<ResolvedType> solveGenericType(String name, TypeSolver typeSolver) {
        if(wrappedNode.getScope().isPresent()){
            ResolvedType typeOfScope = JavaParserFacade.get(typeSolver).getType(wrappedNode.getScope().get());
            Optional<ResolvedType> res = typeOfScope.asReferenceType().getGenericParameterByName(name);
            return res;
        } else{
            return Optional.empty();
        }
    }
@ Override public Optional < ResolvedType > solveGenericType ( String name , TypeSolver typeSolver ) { if ( wrappedNode . getScope ( ) . isPresent ( ) ) { ResolvedType typeOfScope = JavaParserFacade . get ( typeSolver ) . getType ( wrappedNode . getScope ( ) . get ( ) ) ; Optional < ResolvedType > res = typeOfScope . asReferenceType ( ) . getGenericParameterByName ( name ) ; return res ; } else { return Optional . empty ( ) ; } }
/
/