@Nonnull
	public static String annotationsToString(@Nonnull TextFormatConfig format, @Nonnull Annotated container) {
		// Skip if there are no annotations.
		List<AnnotationInfo> annotations = container.getAnnotations();
		if (annotations.isEmpty())
			return "";

		// Print all annotations.
		StringBuilder sb = new StringBuilder();
		for (AnnotationInfo annotation : annotations)
			sb.append(annotationToString(format, annotation)).append('\n');
		sb.setLength(sb.length() - 1); // Cut off ending '\n'
		return sb.toString();
	}
@param format
		Format config.
@param container
		Annotation container. Can be a class, field, or method.

@return String display of the annotations on the given container. Empty string if there are no annotations.
recaf-core/src/main/java/software/coley/recaf/services/decompile/fallback/print/PrintUtils.java