private boolean checkAttributes(Variable v, List<Attribute> list1, List<Attribute> list2, ObjFilter filter) { boolean ok = true; for (Attribute att1 : list1) { if (filter == null || filter.attOk(v, att1)) ok &= checkEach(att1, "file1", list1, "file2", list2, null); } for (Attribute att2 : list2) { if (filter == null || filter.attOk(v, att2)) ok &= checkEach(att2, "file2", list2, "file1", list1, null); } return ok; }