class MissingIndexChangeGenerator extends AbstractChangeGenerator implements MissingObjectChangeGenerator {
    @Override
    public int getPriority(Class<? extends DatabaseObject> objectType, Database database) {
        if (Index.class.isAssignableFrom(objectType)) {
            return PRIORITY_DEFAULT;
        }
        return PRIORITY_NONE;
    }

    @Override
    public Class<? extends DatabaseObject>[] runAfterTypes() {
        return new Class[] {
                Table.class,
                Column.class
        };
    }

    @Override
    public Class<? extends DatabaseObject>[] runBeforeTypes() {
        return null;
    }

    @Override
    public Change[] fixMissing(DatabaseObject missingObject, DiffOutputControl control, Database referenceDatabase, Database comparisonDatabase, ChangeGeneratorChain chain) {<FILL_FUNCTION_BODY>}

    protected CreateIndexChange createCreateIndexChange() {
        return new CreateIndexChange();
    }
}

        Index index = (Index) missingObject;

        if (comparisonDatabase instanceof MSSQLDatabase && index.getRelation() instanceof Table) {
            PrimaryKey primaryKey = ((Table) index.getRelation()).getPrimaryKey();
            if ((primaryKey != null) && DatabaseObjectComparatorFactory.getInstance().isSameObject(missingObject,
                primaryKey.getBackingIndex(), control.getSchemaComparisons(), referenceDatabase)) {
                return EMPTY_CHANGE; //will be handled by the PK
            }
        }

        CreateIndexChange change = createCreateIndexChange();
        change.setTableName(index.getRelation().getName());
        if (control.getIncludeTablespace()) {
            change.setTablespace(index.getTablespace());
        }
        if (control.getIncludeCatalog()) {
            change.setCatalogName(index.getRelation().getSchema().getCatalogName());
        }
        if (control.getIncludeSchema()) {
            change.setSchemaName(index.getRelation().getSchema().getName());
        }
        change.setIndexName(index.getName());
        change.setUnique(((index.isUnique() != null) && index.isUnique()) ? Boolean.TRUE : null);
        change.setClustered(((index.getClustered() != null) && index.getClustered()) ? Boolean.TRUE : null);

        if (referenceDatabase.createsIndexesForForeignKeys()) {
            change.setAssociatedWith(index.getAssociatedWithAsString());
        }

        for (Column column : index.getColumns()) {
            change.addColumn(new AddColumnConfig(column));
        }

        return new Change[] { change };
    
<methods>public non-sealed void <init>() ,public liquibase.change.Change[] fixOutputAsSchema(liquibase.change.Change[], liquibase.diff.compare.CompareControl.SchemaComparison[]) ,public liquibase.change.Change[] fixSchema(liquibase.change.Change[], liquibase.diff.compare.CompareControl.SchemaComparison[]) ,public void setRespectSchemaAndCatalogCase(boolean) <variables>private boolean respectSchemaAndCatalogCase