docs: protected boolean appliesToPathConstraint( List<Component> predicates ) {
          if (predicates.isEmpty()) return true;
          if (predicates.size() > 1) return false;
          assert predicates.size() == 1;
          Component predicate = predicates.get(0);
          if (predicate instanceof Literal && ((Literal)predicate).isInteger()) return true;
          if (predicate instanceof NameTest && ((NameTest)predicate).isWildcard()) return true;
          return false;
      }