boolean (AnnotationExprent typeAnnotationExpr, @NotNull Type type, int param) { Set<AnnotationExprent> typeAnnotations = TargetInfo.FormalParameterTarget .extract(getPossibleTypeAnnotationCollisions(type), param).stream() .map(typeAnnotation-> typeAnnotation.getAnnotationExpr()) .collect(Collectors.toUnmodifiableSet()); return typeAnnotations.contains(typeAnnotationExpr); }