ElementDefn listingDefn = (ElementDefn) MetaDataDictionary .getInstance( ).getElement( ReportDesignConstants.LISTING_ITEM ); if ( !listingDefn.isKindOf( toAdd ) )
if ( !( toAdd instanceof ListingElement ) && !( ModelUtil.containElement( toAdd, ReportDesignConstants.LISTING_ITEM ) ) )
	public List validateForAdding( Module module, DesignElement element,			IElementDefn toAdd )	{		ElementDefn listingDefn = (ElementDefn) MetaDataDictionary				.getInstance( ).getElement( ReportDesignConstants.LISTING_ITEM );		if ( !listingDefn.isKindOf( toAdd ) )			return Collections.EMPTY_LIST;		return doValidate( module, element, DesignElement.NO_SLOT );	}