public static Description descriptionForProvider(
            final boolean includeFieldProperties,
            final Object providerForType
    )
    {
        if (providerForType instanceof Describable) {
            final Describable desc = (Describable) providerForType;
            return desc.getDescription();
        } else if (PluginAdapterUtility.canBuildDescription(providerForType)) {
            return PluginAdapterUtility.buildDescription(providerForType, DescriptionBuilder.builder(),
                                                         includeFieldProperties
            );
        }
        return null;
    }
public static Description descriptionForProvider ( final boolean includeFieldProperties , final Object providerForType ) { if ( providerForType instanceof Describable ) { final Describable desc = ( Describable ) providerForType ; return desc . getDescription ( ) ; } else if ( PluginAdapterUtility . canBuildDescription ( providerForType ) ) { return PluginAdapterUtility . buildDescription ( providerForType , DescriptionBuilder . builder ( ) , includeFieldProperties ) ; } return null ; }
Get or build the description of a plugin instance of a given type
@param includeFieldProperties true to include introspected field properties
@param providerForType plugin instance
@return description, or null