code: public void removeScripType(ScriptType type) {
  		ScriptType scriptType = typeMap.remove(type.getName());
  		if (scriptType != null) {
  			getTreeModel().removeType(scriptType);
  		}
  	}
docs: Removes the given script type.
  <p>
  The templates and scripts associated with the given type are also removed, if any.
  <p>
  The call to this method has no effect if the given type is not registered.
  
  @param type the script type that will be removed
  @since 2.4.0
  @see #registerScriptType(ScriptType)