@Override
	public void registerModel(Class<? extends CodeBlockModel> modelClass, String modelName) {
		if (SubroutineBlockModel.class.isAssignableFrom(modelClass)) {
			if (!subroutineModelsByName.containsKey(modelName)) {
				subroutineModelsByName.put(modelName, new BlockModelInfo(modelName, modelClass));
				updateModelOptions();
				fireModelAdded(modelName, SUBROUTINE_MODEL);
			}
		}
		else if (!basicModelsByName.containsKey(modelName)) {
			basicModelsByName.put(modelName, new BlockModelInfo(modelName, modelClass));
			fireModelAdded(modelName, BASIC_MODEL);
		}
	}
@see ghidra.app.services.BlockModelService#registerModel(java.lang.Class, java.lang.String)
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/blockmodel/BlockModelServicePlugin.java