void (CollectionOf collectionOf) { myDepth++; if (maxDepthExceeded()) { add(styled("...", PyHighlighter.PY_DOT)); return; } final boolean allTypeParamsAreAny = ContainerUtil.and(collectionOf.elementTypes, t -> t == NamedType.ANY); if (allTypeParamsAreAny) { collectionOf.collectionType.accept(this); } else { typingGenericFormat(collectionOf); } myDepth--; }