code: private static <I> boolean checkInputs(Query<I, ?> query, Collection<? extends I> inputs) {
          for (I sym : query.getPrefix()) {
              if (!inputs.contains(sym)) {
                  return false;
              }
          }
          for (I sym : query.getSuffix()) {
              if (!inputs.contains(sym)) {
                  return false;
              }
          }
          return true;
      }
docs: Tests if the input word of the given {@link Query} consists entirely of symbols in {@code inputs}.
  
  @param query
  the query to test
  @param inputs
  the set of allowed inputs
  
  @return {@code true} if the input word of {@code query} consists entirely of symbols in {@code inputs}, {@code
  false} otherwise