runs out of memory because of SwingReturnVisitor