Using DiffBuilder - Error on .withNodeFilter

Hi,

When I run my test in Katalon, it is throwing me error because of this line:
.withNodeFilter(node → !node.getNodeName().equals(“someName”)

Could somebody point out why this is not working or how can replace this line for another that help me ignore a node from an xml?

my complete code is:

import org.junit.Assert

Diff myDiff = DiffBuilder.compare(Input.fromFile(myxml1.xml))
.withTest(Input.fromFile(myxml2.xml))
.checkForSimilar()
.ignoreWhitespace()
.normalizeWhitespace()
.withNodeFilter(node → !node.getNodeName().equals(“someName”)
.build();
Assert.assertFalse(myDiff.hasDifferences());

To implement functional interfaces in Groovy, it’s called Closure.
There is a little bit different with Java 8 lamda expression: https://stackoverflow.com/questions/25565020/is-java-lambda-expression-is-similar-logic-of-groovy-closure?rq=1

Diff myDiff = DiffBuilder.compare(Input.fromFile(myxml1.xml))
.withTest(Input.fromFile(myxml2.xml))
.checkForSimilar()
.ignoreWhitespace()
.normalizeWhitespace()
.withNodeFilter({node -> !node.getNodeName().equals("someName")})
.build();