void () { for (Map.Entry<UserFileType<?>, UserFileType<?>> entry : myOriginalToEditedMap.entrySet()) { //noinspection unchecked,rawtypes entry.getKey().copyFrom((UserFileType)entry.getValue()); } myOriginalToEditedMap.clear(); }