private void removeAttributeAccessorsIfNeeded(
     List<String> pathsToRemove, List<String> pathsFound) {
   for (String path : pathsToRemove) {
     List<GraphAttributeAccessor> attributeAccessorsToRemove = new ArrayList<>();
     for (GraphAttributeAccessor attributeAccessor : attributeAccessors) {
       if (path.equals(attributeAccessor.getPath())) {
         attributeAccessorsToRemove.add(attributeAccessor);
         pathsFound.add(path);
       }
     }
     for (GraphAttributeAccessor graphAttributeAccessor : attributeAccessorsToRemove) {
       attributeAccessors.remove(graphAttributeAccessor);
     }
   }
 }