// If it does we need stop instance equals cross product
final Class< ? > thisClass = ((ClassObjectType) pattern.getObjectType()).getClassType();
for ( final Pattern previousPattern : context.getObjectType() ) {
final Class< ? > previousClass = ((ClassObjectType) previousPattern.getObjectType()).getClassType();
if ( thisClass.isAssignableFrom( previousClass ) ) {
betaConstraints.add( new InstanceNotEqualsConstraint( previousPattern ) );
}
}
// Must be added after the checking, otherwise it matches against itself
context.getObjectType().add( pattern );