Hi Marian,
have a look at my 'Functional Pattern Matching' package on SqueakMap. It does compose several pieces of Smalltalk code with user-defined conditions to one method using the AST of the Refactoring-Browser.
Cheers, Lukas
-- Lukas Renggli http://www.lukas-renggli.ch