I find that code a bit hard to understand. Maybe something like this?

    Set<String> sequences = getSequences( sessionFactoryImplementor );
    new SchemaBuilder().createSequencesIfRequired( sequences );
    ...
    private Set<String> getSequences(SessionFactoryImplementor sfi) { ... }