public int compare(final FunctionalAgent a, final FunctionalAgent b) {
return a.getName().compareTo(b.getName());
}});
final Map<String, String> methodNameMapping = sanitizeMethodNamesForJava(functionalAgents);
final JavadocCrossReferenceGenerator crossRefGen = new JavadocLinkGenerator(methodNameMapping, scopedEntityNamingPolicy);
// Add each functional agent as a method if it has a visible scope and it is not an overloaded function
for (final FunctionalAgent functionalAgent : functionalAgents) {
if (isScopeVisibleAsJavaLibraryAPI(functionalAgent.getScope())) {
// Check that the functional agent has a type that can be handled.