public AddOnModel getAddonModel ( Identifiable identifiable ) { if ( identifiable . getClass ( ) . getClassLoader ( ) instanceof IzouPluginClassLoader && ! identifiable . getClass ( ) . getName ( ) . toLowerCase ( ) . contains ( IzouPluginClassLoader . PLUGIN_PACKAGE_PREFIX_IZOU_SDK ) ) { return getMain ( ) . getAddOnInformationManager ( ) . getAddOnForClassLoader ( identifiable . getClass ( ) . getClassLoader ( ) ) . orElse ( null ) ; } return null ; }
gets the AddonModel for the Identifiable or null if none found