private boolean insertRename(DimensionRenamer renamer) {
            Rename rename = new Rename(operation.modelName(),
                                       dimensionName,
                                       renamer.dimensionPrefix + renamer.dimensions.size(),
                                       null);
            operation.insert(rename, inputNumber);
            removeConstraintsOf(operation, renamer);
            rename.addDimensionNameConstraints(renamer);
            operation.addDimensionNameConstraints(renamer);
            return true;
        }
Inserts a rename operation if possible. Returns whether an operation was inserted.
model-integration/src/main/java/ai/vespa/rankingexpression/importer/DimensionRenamer.java