private Resolution collectDeclaredResolution( Annotation annotation ) {
        if( annotation instanceof ScenarioState ) {
            return ( (ScenarioState) annotation ).resolution();
        }

        if( annotation instanceof ProvidedScenarioState ) {
            return ( (ProvidedScenarioState) annotation ).resolution();
        }

        if( annotation instanceof ExpectedScenarioState ) {
            return ( (ExpectedScenarioState) annotation ).resolution();
        }

        return null;
    }
Returns {@code true} if and only if the {@link ScenarioState#required()} option is present on this state.
jgiven-core/src/main/java/com/tngtech/jgiven/impl/inject/ScenarioStateField.java