code: public static <T extends Executable> Predicate<T> executableModifierIs(final int modifier) {
          return candidate -> (candidate.getModifiers() & modifier) != 0;
      }
docs: Checks if a candidate class has the specified modifier.
  
  @param modifier the modifier to check for.
  @return the predicate.