@Override
	public SarifController getController() {
		currentProgram = getCurrentProgram();
		if (currentProgram != null) {
			if (!sarifControllers.containsKey(currentProgram)) {
				SarifController controller = new SarifController(currentProgram, this);
				sarifControllers.put(currentProgram, controller);
			}
			return sarifControllers.get(currentProgram);
		}
		Msg.showError(this, tool.getActiveWindow(), "File parse error", "No current program");
		return null;
	}
A {@link ProgramPlugin} for reading in sarif files
Ghidra/Features/Sarif/src/main/java/sarif/SarifPlugin.java