code: public static <T extends Executable> Predicate<T> executableIsSynthetic() {
          return candidate -> candidate != null && candidate.isSynthetic();
      }
docs: Checks if a candidate executable is synthetic.
  
  @return the predicate.