How to build Measure in SonarQube 7.9.1

Following code was returning Measure prior to 7.9.1:
public Measure buildMeasure(MeasureBuilder measueBuilder) {
return measueBuilder.build().setPersistenceMode(PersistenceMode.MEMORY);
}

Not anymore. It doesn’t find MeasureBuilder, so I used RangeDistributionBuilder.
The package of Measure is changed from:
org.sonar.api.measures.Measure to org.sonar.api.ce.measure.Measure.
Don’t know if its the same thing.
PersistanceMode ENUM has also vanished from package.

Any advice/help/suggestion?