Index: /applications/editors/josm/plugins/reverter/build.xml
===================================================================
--- /applications/editors/josm/plugins/reverter/build.xml	(revision 34551)
+++ /applications/editors/josm/plugins/reverter/build.xml	(revision 34552)
@@ -4,5 +4,5 @@
     <property name="commit.message" value="Reverter: Update MultiOsmReader to support null data after redaction"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="13914"/>
+    <property name="plugin.main.version" value="14153"/>
 
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/reverter/src/reverter/ChangesetIdQuery.java
===================================================================
--- /applications/editors/josm/plugins/reverter/src/reverter/ChangesetIdQuery.java	(revision 34551)
+++ /applications/editors/josm/plugins/reverter/src/reverter/ChangesetIdQuery.java	(revision 34552)
@@ -25,9 +25,9 @@
 import javax.swing.plaf.basic.BasicComboBoxEditor;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.data.osm.DataSet;
 import org.openstreetmap.josm.gui.ExtendedDialog;
 import org.openstreetmap.josm.gui.MainApplication;
 import org.openstreetmap.josm.gui.widgets.HistoryComboBox;
+import org.openstreetmap.josm.spi.preferences.Config;
 import org.openstreetmap.josm.tools.GBC;
 
@@ -66,5 +66,5 @@
 
     public ChangesetIdQuery() {
-        super(Main.parent, tr("Revert changeset"), new String[] {tr("Revert"), tr("Cancel")}, true);
+        super(MainApplication.getMainFrame(), tr("Revert changeset"), new String[] {tr("Revert"), tr("Cancel")}, true);
         contentInsets = new Insets(10, 10, 10, 5);
 
@@ -142,5 +142,5 @@
         });
 
-        if (Main.pref.getBoolean("downloadchangeset.autopaste", true)) {
+        if (Config.getPref().getBoolean("downloadchangeset.autopaste", true)) {
             tcid.tryToPasteFromClipboard();
         }
@@ -157,5 +157,5 @@
     protected void restoreChangesetsHistory(HistoryComboBox cbHistory) {
         List<String> cmtHistory = new LinkedList<>(
-                Main.pref.getList(getClass().getName() + ".changesetsHistory", new LinkedList<String>()));
+                Config.getPref().getList(getClass().getName() + ".changesetsHistory", new LinkedList<String>()));
         // we have to reverse the history, because ComboBoxHistory will reverse it again in addElement()
         Collections.reverse(cmtHistory);
@@ -169,5 +169,5 @@
     protected void remindChangesetsHistory(HistoryComboBox cbHistory) {
         cbHistory.addCurrentItemToHistory();
-        Main.pref.putList(getClass().getName() + ".changesetsHistory", cbHistory.getHistory());
+        Config.getPref().putList(getClass().getName() + ".changesetsHistory", cbHistory.getHistory());
     }
 
Index: /applications/editors/josm/plugins/reverter/src/reverter/ObjectsHistoryDialog.java
===================================================================
--- /applications/editors/josm/plugins/reverter/src/reverter/ObjectsHistoryDialog.java	(revision 34551)
+++ /applications/editors/josm/plugins/reverter/src/reverter/ObjectsHistoryDialog.java	(revision 34552)
@@ -9,11 +9,11 @@
 import javax.swing.JPanel;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.gui.ExtendedDialog;
+import org.openstreetmap.josm.gui.MainApplication;
 
 @SuppressWarnings("serial")
 public class ObjectsHistoryDialog extends ExtendedDialog {
     public ObjectsHistoryDialog() {
-        super(Main.parent, tr("Objects history"), new String[] {"Revert", "Cancel"}, false);
+        super(MainApplication.getMainFrame(), tr("Objects history"), new String[] {"Revert", "Cancel"}, false);
         contentInsets = new Insets(10, 10, 10, 5);
         setButtonIcons(new String[] {"ok.png", "cancel.png" });
Index: /applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetTask.java
===================================================================
--- /applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetTask.java	(revision 34551)
+++ /applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetTask.java	(revision 34552)
@@ -14,8 +14,8 @@
 import javax.swing.JOptionPane;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.command.Command;
 import org.openstreetmap.josm.command.SequenceCommand;
 import org.openstreetmap.josm.command.conflict.ConflictAddCommand;
+import org.openstreetmap.josm.data.UndoRedoHandler;
 import org.openstreetmap.josm.gui.MainApplication;
 import org.openstreetmap.josm.gui.Notification;
@@ -65,5 +65,5 @@
                 @Override
                 public Integer call() throws Exception {
-                    return JOptionPane.showConfirmDialog(Main.parent,
+                    return JOptionPane.showConfirmDialog(MainApplication.getMainFrame(),
                             tr("This changeset has objects that are not present in current dataset.\n" +
                                     "It is needed to download them before reverting. Do you want to continue?"),
@@ -111,5 +111,5 @@
             Command cmd = allcmds.size() == 1 ? allcmds.get(0) : new SequenceCommand(tr("Revert changeset"), allcmds);
             GuiHelper.runInEDT(() -> {
-                MainApplication.undoRedo.add(cmd);
+                UndoRedoHandler.getInstance().add(cmd);
                 if (numberOfConflicts > 0) {
                     MainApplication.getMap().conflictDialog.warnNumNewConflicts(numberOfConflicts);
Index: /applications/editors/josm/plugins/reverter/src/reverter/ReverterUploadHook.java
===================================================================
--- /applications/editors/josm/plugins/reverter/src/reverter/ReverterUploadHook.java	(revision 34551)
+++ /applications/editors/josm/plugins/reverter/src/reverter/ReverterUploadHook.java	(revision 34552)
@@ -5,4 +5,5 @@
 import org.openstreetmap.josm.command.Command;
 import org.openstreetmap.josm.data.APIDataSet;
+import org.openstreetmap.josm.data.UndoRedoHandler;
 import org.openstreetmap.josm.gui.MainApplication;
 
@@ -17,5 +18,5 @@
         if (!ReverterPlugin.reverterUsed) return true;
         boolean hasRevertions = false;
-        for (Command cmd : MainApplication.undoRedo.commands) {
+        for (Command cmd : UndoRedoHandler.getInstance().commands) {
             if (cmd instanceof RevertChangesetCommand) {
                 hasRevertions = true;
