void (PyStatementWithElse from) { PyStatementList statementList = null; if (from instanceof PyIfStatement) { final PyIfPart ifPart = ((PyIfStatement)from).getIfPart(); if (ifPart instanceof PyIfPartIfImpl) { statementList = ifPart.getStatementList(); } } else if (from instanceof PyWhileStatement) { final PyWhilePart part = ((PyWhileStatement)from).getWhilePart(); statementList = part.getStatementList(); } else if (from instanceof PyTryExceptStatement) { final PyTryPart part = ((PyTryExceptStatement)from).getTryPart(); statementList = part.getStatementList(); } else if (from instanceof PyForStatement) { final PyForPart part = ((PyForStatement)from).getForPart(); statementList = part.getStatementList(); } if (statementList != null) extract(statementList.getFirstChild(), statementList.getLastChild(), from); }