private String createProgressString() {
		long currentProgress = progress;

		if (currentProgress <= 0) {
			return "0%";
		}

		long maximum = max;
		if (currentProgress >= maximum) {
			return "100%";
		}

		float percent = ((float) currentProgress / (float) maximum);
		String formattedPercent = PERCENT_FORMAT.format(percent);
		if (!paintProgressValue) {
			return formattedPercent;
		}

		return formattedPercent + " (" + currentProgress + " of " + maximum + ")";
	}
True (the default) signals to paint the progress information inside of the progress bar.

@param showProgressValue true to paint the progress value; false to not
Ghidra/Framework/Project/src/main/java/ghidra/framework/task/gui/GProgressBar.java