boolean (CodeStyleSettings settings) { Iterable<String> oldProperties = getPropertyNames(settings); int i = 0; for (String property : oldProperties) { if (i >= myModel.size() || !property.equals(myModel.getElementAt(i))) { return true; } i++; } return false; }