docs: public void registerScriptType(ScriptType type) {
  		if (typeMap.containsKey(type.getName())) {
  			throw new InvalidParameterException("ScriptType already registered: " + type.getName());
  		}
  		this.typeMap.put(type.getName(), type);
  		this.getTreeModel().addType(type);
  
  		if (shouldLoadTemplatesOnScriptTypeRegistration) {
  			loadScriptTemplates(type);
  		}
  
  		synchronized (trackedDirs) {
  			for (File dir : trackedDirs) {
  				addScriptsFromDir(dir, type, null);
  			}
  		}
  	}