boolean (@Nullable ASTNode node1, @Nullable ASTNode node2) { if (node1 == null && node2 == null) return true; if (node1 == null || node2 == null) return false; final String text1 = node1.getText(); final String text2 = node2.getText(); return text1.equals(text2); }