Index: trunk/src/org/openstreetmap/josm/data/Preferences.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 14146)
+++ trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 14147)
@@ -21,6 +21,4 @@
 import java.util.HashSet;
 import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
@@ -48,5 +46,4 @@
 import org.openstreetmap.josm.spi.preferences.ListSetting;
 import org.openstreetmap.josm.spi.preferences.Setting;
-import org.openstreetmap.josm.spi.preferences.StringSetting;
 import org.openstreetmap.josm.tools.CheckParameterUtil;
 import org.openstreetmap.josm.tools.ListenerList;
@@ -286,34 +283,4 @@
 
     /**
-     * Gets all normal (string) settings that have a key starting with the prefix
-     * @param prefix The start of the key
-     * @return The key names of the settings
-     */
-    public synchronized Map<String, String> getAllPrefix(final String prefix) {
-        final Map<String, String> all = new TreeMap<>();
-        for (final Entry<String, Setting<?>> e : settingsMap.entrySet()) {
-            if (e.getKey().startsWith(prefix) && (e.getValue() instanceof StringSetting)) {
-                all.put(e.getKey(), ((StringSetting) e.getValue()).getValue());
-            }
-        }
-        return all;
-    }
-
-    /**
-     * Gets all list settings that have a key starting with the prefix
-     * @param prefix The start of the key
-     * @return The key names of the list settings
-     */
-    public synchronized List<String> getAllPrefixCollectionKeys(final String prefix) {
-        final List<String> all = new LinkedList<>();
-        for (Map.Entry<String, Setting<?>> entry : settingsMap.entrySet()) {
-            if (entry.getKey().startsWith(prefix) && entry.getValue() instanceof ListSetting) {
-                all.add(entry.getKey());
-            }
-        }
-        return all;
-    }
-
-    /**
      * Get all named colors, including customized and the default ones.
      * @return a map of all named colors (maps preference key to {@link ColorInfo})
Index: trunk/src/org/openstreetmap/josm/spi/preferences/AbstractPreferences.java
===================================================================
--- trunk/src/org/openstreetmap/josm/spi/preferences/AbstractPreferences.java	(revision 14146)
+++ trunk/src/org/openstreetmap/josm/spi/preferences/AbstractPreferences.java	(revision 14147)
@@ -2,6 +2,9 @@
 package org.openstreetmap.josm.spi.preferences;
 
+import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
+import java.util.TreeMap;
 
 import org.openstreetmap.josm.tools.Logging;
@@ -148,3 +151,33 @@
      */
     public abstract <T extends Setting<?>> T getSetting(String key, T def, Class<T> klass);
+
+    /**
+     * Gets all normal (string) settings that have a key starting with the prefix
+     * @param prefix The start of the key
+     * @return The key names of the settings
+     */
+    public Map<String, String> getAllPrefix(String prefix) {
+        final Map<String, String> all = new TreeMap<>();
+        for (final Entry<String, Setting<?>> e : getAllSettings().entrySet()) {
+            if (e.getKey().startsWith(prefix) && (e.getValue() instanceof StringSetting)) {
+                all.put(e.getKey(), ((StringSetting) e.getValue()).getValue());
+            }
+        }
+        return all;
+    }
+
+    /**
+     * Gets all list settings that have a key starting with the prefix
+     * @param prefix The start of the key
+     * @return The key names of the list settings
+     */
+    public List<String> getAllPrefixCollectionKeys(String prefix) {
+        final List<String> all = new LinkedList<>();
+        for (Entry<String, Setting<?>> entry : getAllSettings().entrySet()) {
+            if (entry.getKey().startsWith(prefix) && entry.getValue() instanceof ListSetting) {
+                all.add(entry.getKey());
+            }
+        }
+        return all;
+    }
 }
