List<RatedResolveResult> (@NotNull PyTypeParameterListOwner typeParameterListOwner, @NotNull String name) { if (typeParameterListOwner.getTypeParameterList() != null) { return StreamEx.of(typeParameterListOwner.getTypeParameterList().getTypeParameters()) .filter(it -> name.equals(it.getName())) .map(it -> new RatedResolveResult(RatedResolveResult.RATE_NORMAL, it)) .toList(); } else { return Collections.emptyList(); } }