LineMarkerType (Collection<? extends AnnotationDocGenerator> nonCodeAnnotations) { if (ContainerUtil.find(nonCodeAnnotations, (anno) -> !anno.isInferred()) != null) { return LineMarkerType.External; } if (ContainerUtil.find(nonCodeAnnotations, (anno) -> anno.isInferred() && !isContract(anno)) != null) { return LineMarkerType.InferredNullability; } if (!nonCodeAnnotations.isEmpty()) { return LineMarkerType.InferredContract; } return null; }