@Override
	public void serviceRemoved(Class<?> interfaceClass, Object removedService) {
		if (interfaceClass.equals(MarkerService.class)) {
			markerService = null;
		}
		else if (interfaceClass.equals(GoToService.class)) {
			nextAction.remove();
			previousAction.remove();
		}
	}
A plugin to provider actions for manipulating the colors of the {@link CodeViewerService}.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/colorizer/ColorizingPlugin.java