public static IDrawerItem getDrawerItem(List<IDrawerItem> drawerItems, Object tag) {
        if (tag != null) {
            for (IDrawerItem drawerItem : drawerItems) {
                if (tag.equals(drawerItem.getTag())) {
                    return drawerItem;
                }
            }
        }
        return null;
    }
public static IDrawerItem getDrawerItem ( List < IDrawerItem > drawerItems , Object tag ) { if ( tag != null ) { for ( IDrawerItem drawerItem : drawerItems ) { if ( tag . equals ( drawerItem . getTag ( ) ) ) { return drawerItem ; } } } return null ; }
gets the drawerItem by a defined tag from a drawerItem list

@param drawerItems
@param tag
@return