Fix for CI ant build using old jdk (not 8) for compiling the compiler - no support for method references.
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
index cd6e91a..f4fadd7 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
@@ -272,7 +272,12 @@
     }
 
     public static void removeExcludedImports(List<String> list) {
-        list.removeIf(EmitterUtils::shouldExcludeImport);
+        for (String listItem:list) {
+            if (shouldExcludeImport(listItem)) {
+                list.remove(listItem);
+            }
+        }
+        // list.removeIf(EmitterUtils::shouldExcludeImport);
     }
 
     public static IClassDefinition getClassDefinition(IDefinitionNode node)