private static BitMask calculatePatternMask(List<String> listenedProperties, List<String> settableProperties, boolean isPositive) {
if (listenedProperties == null) {
return EmptyBitMask.get();
}
BitMask mask = getEmptyPropertyReactiveMask(settableProperties.size());
if (listenedProperties != null && listenedProperties.contains( TraitableBean.TRAITSET_FIELD_NAME )) {
if (isPositive && listenedProperties != null && listenedProperties.contains( TraitableBean.TRAITSET_FIELD_NAME ) ) {
mask = mask.set(TRAITABLE_BIT);
}
}
for (String propertyName : listenedProperties) {
if (propertyName.equals(isPositive ? "*" : "!*")) {
return isPositive ? AllSetBitMask.get() : allSetButTraitBitMask();