boolean (@NotNull PsiElement element) { if (!(hasMovableElementType(element) && PyUtil.isTopLevel(element))) { return false; } if (element instanceof PyTargetExpression) { return !(PyNames.ALL.equals(((PyTargetExpression)element).getName())) && isTargetOfSimpleAssignment(element); } return true; }