code: public static IReactionSet getRelevantReactions(IReactionSet reactSet, IAtomContainer molecule) {
          IReactionSet newReactSet = reactSet.getBuilder().newInstance(IReactionSet.class);
          IReactionSet reactSetProd = getRelevantReactionsAsProduct(reactSet, molecule);
          for (IReaction reaction : reactSetProd.reactions())
              newReactSet.addReaction(reaction);
          IReactionSet reactSetReact = getRelevantReactionsAsReactant(reactSet, molecule);
          for (IReaction reaction : reactSetReact.reactions())
              newReactSet.addReaction(reaction);
          return newReactSet;
      }
docs: Get all Reactions object containing a Molecule from a set of Reactions.
  
  @param reactSet The set of reaction to inspect
  @param molecule The molecule to find
  @return         The IReactionSet