docs: public static void validateNodeAndPatterns(final Node node, final Pattern... patterns)
              throws IllegalArgumentException
     {
        // Precondition checks
        if (node == null)
        {
           throw new IllegalArgumentException("node must be specified");
        }
        if (patterns == null || patterns.length == 0)
        {
           throw new IllegalArgumentException("At least one pattern must be specified");
        }
  
        // OK
     }