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