public static AttributeListExtension findFirst ( Collection < ? extends Extension > extensions ) { for ( Extension extension : extensions ) { if ( ATTRIBUTE_LIST_EXTENSION_ID == extension . getId ( ) ) return ( AttributeListExtension ) extension ; } return null ; }
Returns the first AttributeListExtension found in the given collection of extensions or null if the extension collection does not contain an AttributeListExtension .