Index: src/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilder.java
===================================================================
--- src/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilder.java	(revision 34975)
+++ src/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilder.java	(working copy)
@@ -16,6 +16,7 @@
 import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionLegRole;
 import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionType;
 import org.openstreetmap.josm.tools.CheckParameterUtil;
+import org.openstreetmap.josm.tools.Utils;
 
 /**
  * TurnRestrictionBuilder creates a turn restriction and initializes it with
@@ -312,8 +313,8 @@
         if (primitives.size() != 2) return null;
 
         // we need exactly one node and one way in the selection ...
-        List<Node> nodes = OsmPrimitive.getFilteredList(primitives, Node.class);
-        List<Way> ways = OsmPrimitive.getFilteredList(primitives, Way.class);
+        List<Node> nodes = new ArrayList<>(Utils.filteredCollection(primitives, Node.class));
+        List<Way> ways = new ArrayList<>(Utils.filteredCollection(primitives, Way.class));
         if (nodes.size() != 1 || ways.size() != 1) return null;
 
         // .. and the node has to be the start or the node of the way
@@ -373,7 +374,7 @@
             // if we have exactly two selected primitives, we expect two ways.
             // See initNoUTurnRestriction() for the case where we have a selected way
             // and a selected node
-            List<Way> selWays = OsmPrimitive.getFilteredList(primitives, Way.class);
+            List<Way> selWays = new ArrayList<>(Utils.filteredCollection(primitives, Way.class));
             if (selWays.size() != 2) return null;
             w1 = selWays.get(0);
             w2 = selWays.get(1);
@@ -381,8 +382,8 @@
         } else if (primitives.size() == 3) {
             // if we have exactly three selected primitives, we need two ways and a
             // node, which should be an acceptable via node
-            List<Way> selWays = OsmPrimitive.getFilteredList(primitives, Way.class);
-            List<Node> selNodes = OsmPrimitive.getFilteredList(primitives, Node.class);
+            List<Way> selWays = new ArrayList<>(Utils.filteredCollection(primitives, Way.class));
+            List<Node> selNodes = new ArrayList<>(Utils.filteredCollection(primitives, Node.class));
             if (selWays.size() != 2) return null;
             if (selNodes.size() != 1) return null;
             w1 = selWays.get(0);
@@ -448,7 +449,7 @@
         // case 0 already handled
         case 1:
             tr = initEmptyTurnRestriction();
-            if (OsmPrimitive.getFilteredList(primitives, Way.class).size() == 1) {
+            if (Utils.filteredCollection(primitives, Way.class).size() == 1) {
                 // we have exactly one selected way? -> init the "from" leg
                 // of the turn restriction with it
                 tr.addMember(new RelationMember("from", primitives.get(0)));
Index: src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionLegEditor.java
===================================================================
--- src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionLegEditor.java	(revision 34975)
+++ src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionLegEditor.java	(working copy)
@@ -19,6 +19,7 @@
 import java.awt.event.MouseEvent;
 import java.awt.event.MouseMotionAdapter;
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.List;
@@ -54,6 +55,7 @@
 import org.openstreetmap.josm.tools.CheckParameterUtil;
 import org.openstreetmap.josm.tools.ImageProvider;
 import org.openstreetmap.josm.tools.Shortcut;
+import org.openstreetmap.josm.tools.Utils;
 
 /**
  * This is an editor for one of the two legs of a turn restriction.
@@ -292,7 +294,7 @@
 
          @Override
         public void actionPerformed(ActionEvent e) {
-             List<Way> selWays = OsmPrimitive.getFilteredList(model.getJosmSelectionListModel().getSelected(), Way.class);
+             List<Way> selWays = new ArrayList<>(Utils.filteredCollection(model.getJosmSelectionListModel().getSelected(), Way.class));
              if (selWays.size() != 1) return;
              Way w = selWays.get(0);
              model.setTurnRestrictionLeg(role, w);
@@ -299,7 +301,7 @@
          }
 
          public void updateEnabledState() {
-            setEnabled(OsmPrimitive.getFilteredList(model.getJosmSelectionListModel().getSelected(), Way.class).size() == 1);
+            setEnabled(Utils.filteredCollection(model.getJosmSelectionListModel().getSelected(), Way.class).size() == 1);
          }
 
         @Override
