code: public static Predicate<HandlerInput> canFulfillIntentName(String intentName) {
          return i -> i.getRequestEnvelope().getRequest() instanceof CanFulfillIntentRequest
                  && intentName.equals(((CanFulfillIntentRequest) i.getRequestEnvelope().getRequest()).getIntent().getName());
      }
docs: Returns a predicate that returns to true if the incoming request is an {@link CanFulfillIntentRequest}
  for the given intent name.
  @param intentName intent name to evaluate against
  @return true if the incoming request is an {@link CanFulfillIntentRequest} for the given intent name