Index: /applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustMapMode.java
===================================================================
--- /applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustMapMode.java	(revision 36341)
+++ /applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustMapMode.java	(revision 36342)
@@ -242,8 +242,5 @@
     private static List<GeoImageLayer> getVisibleGeoImageLayers() {
         List<GeoImageLayer> all = new ArrayList<>(MainApplication.getLayerManager().getLayersOfType(GeoImageLayer.class));
-        Iterator<GeoImageLayer> it = all.iterator();
-        while (it.hasNext()) {
-            if (!it.next().isVisible()) it.remove();
-        }
+        all.removeIf(geoImageLayer -> !geoImageLayer.isVisible());
         return all;
     }
