Issue #2051847 by dawehner: Fixed AnnotatedClassDiscovery::getDefinitions is critically slow when viewing nodes with comments.