final void addImportReferences(Symbol symbol, SymbolReference.ContextOption... options) {
        for (SymbolReference reference : symbol.getReferences()) {
            if (options.length == 0) {
                addImport(reference.getSymbol(), reference.getAlias(), options);
            } else {
                for (SymbolReference.ContextOption option : options) {
                    if (reference.hasOption(option)) {
                        addImport(reference.getSymbol(), reference.getAlias(), options);
                        break;
                    }
                }
            }
        }
    }
Adds any imports to the writer by getting all of the references from the
symbol that contain one or more of the given {@code options}.

@param symbol Symbol to import the references of.
@param options The options that must appear on the reference.
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/writer/SymbolWriter.java