Style preference: I would make this return a value, since I feel it would be clearer what is happening at the call site with:

```java
getHandle().setMaxProgress(calculateMaxProgress());
```

I initially thought of naming it `calculateAndSetMaxProgress()` to make it clearer at the call site, but the other way seems nicer to me.