You should have some static EnumSet and just call a single .contains() here