public Collection < AbstractAttribute > findAllAttributes ( final boolean parallel ) { final Collection < Lock > locks = getReadLocks ( rootTags ) ; for ( final Lock lock : locks ) { lock . lock ( ) ; } try { return buildAllAttributesStream ( parallel ) . collect ( Collectors . toSet ( ) ) ; } finally { for ( final Lock lock : locks ) { lock . unlock ( ) ; } } }
Finds all attributes from all tags .