if (!(object instanceof ConditionalForClass)) {
return isForClass;
}
ConditionalForClass conditionalForClass = (ConditionalForClass) object;
// Only call the conditional if we match one of the classes or there was no specific classes to match against
if (isForClass || classes.isEmpty()) {
return conditionalForClass.isForClass(targetClass);
}
return false;
}