@SuppressWarnings("SuspiciousMethodCalls")
    public void remove(Concept concept) {
        modifiedThings.remove(concept);
        modifiedRoles.remove(concept);
        modifiedRelationTypes.remove(concept);
        modifiedRules.remove(concept);

        if (concept.isAttribute()) {
            newAttributes.removeAll(AttributeImpl.from(concept.asAttribute()).getIndex());
        }

        if (concept.isRelation()) {
            newRelations.remove(concept.asRelation());
        }

        conceptCache.remove(concept.id());
        if (concept.isSchemaConcept()) {
            Label label = concept.asSchemaConcept().label();
            schemaConceptCache.remove(label);
            labelCache.remove(label);
        }
    }
@ SuppressWarnings ( "SuspiciousMethodCalls" ) public void remove ( Concept concept ) { modifiedThings . remove ( concept ) ; modifiedRoles . remove ( concept ) ; modifiedRelationTypes . remove ( concept ) ; modifiedRules . remove ( concept ) ; if ( concept . isAttribute ( ) ) { newAttributes . removeAll ( AttributeImpl . from ( concept . asAttribute ( ) ) . getIndex ( ) ) ; } if ( concept . isRelation ( ) ) { newRelations . remove ( concept . asRelation ( ) ) ; } conceptCache . remove ( concept . id ( ) ) ; if ( concept . isSchemaConcept ( ) ) { Label label = concept . asSchemaConcept ( ) . label ( ) ; schemaConceptCache . remove ( label ) ; labelCache . remove ( label ) ; } }
@param concept The concept to no longer track