Fixed acceptIfAnalyzableAnchor
Simplified collectPreformatted

Thought of a simple and more concise approach