Creates and returns a new PatternBase instance configured using the provided builder function.
PatternBase