code: public static SmartsPattern create(String smarts, IChemObjectBuilder builder) throws IOException {
          return new SmartsPattern(smarts, builder);
      }
docs: Create a {@link Pattern} that will match the given {@code smarts} query.
  
  @param smarts  SMARTS pattern string
  @param builder chem object builder used to create objects
  @return a new pattern
  @throws java.io.IOException the smarts could not be parsed