int (List<? extends Property> properties, Property property) { String name = property.getName(); int size = properties.size(); for (int i = 0; i < size; i++) { Property nextProperty = properties.get(i); if (Objects.equals(nextProperty.getGroup(), property.getGroup()) && name.equals(nextProperty.getName())) { return i; } } return -1; }