void (PyAssignmentStatement assignment) { final PyStatementList statementList = PsiTreeUtil.getParentOfType(assignment, PyStatementList.class); if (statementList == null) return; assignment.delete(); }