public void showProgressIcon(boolean visible) {
		if (visible == showingIcon) {
			return;
		}
		Runnable r = () -> {
			if (visible) {
				mainContentPanel.add(progressPanel, BorderLayout.EAST);
			}
			else {
				mainContentPanel.remove(progressPanel);
			}
			showingIcon = visible;
		};

		Swing.runNow(r);
	}
Sets the visibility of the progress icon

@param visible if true, display the progress icon
Ghidra/Framework/Docking/src/main/java/ghidra/util/task/TaskMonitorComponent.java