docs: static void filterUnwantedReferences(List<JpaProperty> result, Set<BeanId> query) {
          ListIterator<JpaProperty> it = result.listIterator();
          while (it.hasNext()) {
              // remove property from result that was not part of the query
              JpaProperty found = it.next();
              if (!query.contains(found.getId())) {
                  it.remove();
              }
          }
      }