boolean (@NotNull ArrangementEntry entry) { if (entry instanceof TypeAwareArrangementEntry) { final Set<? extends ArrangementSettingsToken> types = ((TypeAwareArrangementEntry)entry).getTypes(); for (ArrangementAtomMatchCondition condition : myTypes) { final Object value = condition.getValue(); boolean isInverted = value instanceof Boolean && !((Boolean)value); if (isInverted == types.contains(condition.getType())) { return false; } } return true; } return false; }