List<TypeAnnotation> (List<TypeAnnotation> typeAnnotations) { return typeAnnotations.stream() .filter(typeAnnotation -> typeAnnotation.getTargetInfo() instanceof FormalParameterTarget) .collect(Collectors.toList()); }