code: public static Predicate<ItemInfo> inPackage(final String... pkgs) {
          return input -> {
              final String typePkg = input.getType().getPackage().getName();
              return Arrays.stream(pkgs).anyMatch(typePkg::startsWith);
          };
      }
docs: Match packages as "starts with": match all classes in package and subpackages.
  
  @param pkgs packages to match (at least one)
  @return item type package matching predicate