private void maybeUpdateMaximum() {
		long currentMaximum = delegate.getMaximum();
		long progress = delegate.getProgress();

		long _75_percent = currentMaximum - (currentMaximum / 4);
		if (progress > _75_percent) {
			delegate.setMaximum(
				Math.max(Math.max(progress, 4), currentMaximum + currentMaximum / 4));
		}
	}
A class that is meant to wrap a {@link TaskMonitor} when you do not know the maximum value
of the progress.
Ghidra/Framework/Gui/src/main/java/ghidra/util/task/UnknownProgressWrappingTaskMonitor.java