Index: trunk/src/org/openstreetmap/josm/tools/ReflectionUtils.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/ReflectionUtils.java	(revision 16461)
+++ trunk/src/org/openstreetmap/josm/tools/ReflectionUtils.java	(revision 16462)
@@ -7,5 +7,4 @@
 import java.util.Collection;
 import java.util.function.Function;
-import java.util.stream.IntStream;
 
 import org.openstreetmap.josm.plugins.PluginHandler;
@@ -64,8 +63,11 @@
     private static <T extends Object> T findCaller(Function<StackTraceElement, T> getter, Collection<T> exclusions) {
         StackTraceElement[] stack = Thread.currentThread().getStackTrace();
-        return IntStream.range(3, stack.length)
-                .mapToObj(i -> getter.apply(stack[i]))
-                .filter(t -> exclusions == null || !exclusions.contains(t))
-                .findFirst().orElse(null);
+        for (int i = 3; i < stack.length; i++) {
+            T t = getter.apply(stack[i]);
+            if (exclusions == null || !exclusions.contains(t)) {
+                return t;
+            }
+        }
+        return null;
     }
 }
