@Override
	public void unregisterModel(Class<? extends CodeBlockModel> modelClass) {
		if (SubroutineBlockModel.class.isAssignableFrom(modelClass)) {
			BlockModelInfo info = findSubroutineModel(modelClass);
			if (info != null) {
				subroutineModelsByName.remove(info.modelName);
				updateModelOptions();
				fireModelRemoved(info.modelName, SUBROUTINE_MODEL);
			}
		}
		else {
			BlockModelInfo info = findBasicModel(modelClass);
			if (info != null) {
				subroutineModelsByName.remove(info.modelName);
				updateModelOptions();
				fireModelRemoved(info.modelName, BASIC_MODEL);
			}
		}
	}
@see ghidra.app.services.BlockModelService#unregisterModel(java.lang.Class)
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/blockmodel/BlockModelServicePlugin.java