code: public static <T> boolean included(
              T value, Collection<? extends T> includes, Collection<? extends T> excludes) {
          return (includes.isEmpty() && excludes.isEmpty())
                  || includes.contains(value)
                  || (includes.isEmpty() && !excludes.contains(value));
      }
docs: Determines if the specified value is included based on the contents of the include and
  exclude collections.
  
  <p>Returns true if one of the following is true: <br>
  includes is empty && excludes is empty<br>
  includes contains value<br>
  includes is empty and excludes does not contain value<br>
  
  @param value Value to test
  @param includes Included values
  @param excludes Excluded values
  @return true if it should be included