public boolean checkEditors(DataTypeManager dtMgr, boolean allowCancel) {
		for (EditorProvider editor : editorList) {
			DataTypeManager editorDtm = editor.getDataTypeManager();
			if (dtMgr == null || dtMgr == editorDtm) {
				if (!checkEditor(editor, allowCancel)) {
					return false;
				}
			}
		}
		return true;
	}
Check for data types being edited for the given data type manager and prompt the user to
save any unsaved changes.
If dtMgr is null then all editors will be checked.
@param dtMgr the data type manager whose editors are to be checked for changes.
If null, then check all editors for save.
@param allowCancel true indicates that the user can cancel the editor close when prompted
for whether to save changes or not.
@return true if all editors were resolved and can close now; return
false if the user canceled when prompted to save changes.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/editor/DataTypeEditorManager.java