private <T extends IEntity> boolean isSpecialEntity(T entity) {
        return (entity instanceof Estimate)
                || (entity instanceof Invoice)
                || (entity instanceof SalesReceipt);
    }
private < T extends IEntity > boolean isSpecialEntity ( T entity ) { return ( entity instanceof Estimate ) || ( entity instanceof Invoice ) || ( entity instanceof SalesReceipt ) ; }
Method verifies that entity is included in special list which might have additional features (like export as pdf)
@param entity
@param <T>
@return