boolean (BooleanOptionKey key) { if (!shouldHideOptions()) return true; if (myShowAllStandardOptions || myAllowedOptions.contains(key.getOptionName())) return true; for (CustomBooleanOptionInfo customOption : myCustomOptions.get(key.groupName)) { if (customOption.fieldName.equals(key.getOptionName())) return true; } return false; }