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