@Override
	protected void locationChanged(ProgramLocation location) {
		if (provider == null) {
			return;
		}

		if (location == null) {
			return;
		}
		if (currentFunction != null && currentFunction.getBody().contains(location.getAddress())) {
			return;
		}
		FunctionManager functionManager = currentProgram.getFunctionManager();
		currentFunction = functionManager.getFunctionContaining(location.getAddress());
		if (currentFunction == null) {
			return;
		}
		provider.reload();
	}
Creates a BSimFeatureVisualizerPlugin for the given {@link PluginTool}
@param tool plugin tool
Ghidra/Features/BSimFeatureVisualizer/src/main/java/ghidra/bsfv/BSimFeatureVisualizerPlugin.java