private void clearFavorites() {
		BuiltInDataTypeManager dataTypeManager = BuiltInDataTypeManager.getDataTypeManager();
		for (DataType dt : dataTypeManager.getFavorites()) {
			dataTypeManager.setFavorite(dt, false);
		}
	}
Test the favorites and data manager services.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/FavoritesAndMiscTest.java