/** * Adds the declarations in <code>declared</code> that are not in the <code>compared</code> list. * <code>isAdd</code> denotes whether the declarations are added or removed. */ protected void addDeclarations( SimpleNode[] declared, List compared, SimpleNode other, boolean isAdd) { for (int di = 0; di < declared.length; ++di) { if (!compared.contains(declared[di])) { addDeclaration(declared[di], other, isAdd); } } }