public function supportsEnvironmentAndStep(Environment $environment, StepNode $step) { if (!$environment instanceof ContextEnvironment) { return false; } if (!$environment->hasContexts()) { return false; } return null !== $this->contextIdentifier->guessTargetContextClass($environment); }