ConstraintVisitor: temporary fix for annotations with metamodel declarations