For example if we type f(a)., then it should be completed as when pressing CTRL+ALT+W, and after completion code should be converted to g(f(a)) This will partially emulate encapsulation ergonomics (when you typing expression from left to right).