public void dismissEditors(DataTypeManager dtMgr) {
		ArrayList<EditorProvider> list = new ArrayList<>();
		for (EditorProvider editor : editorList) {
			DataTypeManager editorDtm = editor.getDataTypeManager();
			if ((dtMgr == null) || (dtMgr == editorDtm)) {
				list.add(editor);
			}
		}
		for (EditorProvider element : list) {
			dismissEditor(element);
		}
	}
Check for any data types being edited for the given data
type manager and closes those editors. An editor is associated with a data type
manager based on the data type manager for the category where the edits will be saved.
If dtMgr is null then all editors will be dismissed.
@param dtMgr the data type manager whose editors are to be dismissed.
If null, then dismiss all editors.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/editor/DataTypeEditorManager.java