code: @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();
          }
      }
docs: /