private boolean checkEditors(Program program) {

		Iterator<Function> iter = editorMap.keySet().iterator();
		while (iter.hasNext()) {
			Function function = iter.next();
			if (program == null || function.getProgram() == program) {
				StackEditorProvider editor = editorMap.get(function);
				editor.show();
				if (editor.needsSave()) {
					if (!editor.checkForSave(true)) {
						return false;
					}
				}
			}
		}
		return true;
	}
Check for any data types being edited for the given data
type manager that is being closed.
if pgm is null then all editors will be checked.
@param program the program whose stack editors are to be checked for changes. 
If null, then check all editors for save.
@return true if all stack editors were resolved and can close now; return
false if the user canceled the save action
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/stackeditor/StackEditorManager.java