public static boolean isAnywhere(Rule r) { if (null == r.getAttributes()) return false; for (Attribute any : anywheres) { if (any.getValue() == r.getAttribute(any.getKey())) return true; } return false; }