int (List<? extends Property> properties, Property property) { Property parent = property.getParent(); if (parent == null) { return findProperty(properties, property); } String name = getFullPathName(property); int size = properties.size(); for (int i = 0; i < size; i++) { if (name.equals(getFullPathName(properties.get(i)))) { return i; } } return -1; }