code: public static @Nonnull Predicate nameContains(final @Nonnull Pattern pattern) {
          return new Predicate() {
              @Override
              public boolean isValid(@Nonnull ProcessThread<?, ?, ?> thread) {
                  return pattern.matcher(thread.getName()).find();
              }
          };
      }
docs: Match thread its name contains pattern.