public static boolean isTargetOfSimpleAssignment(@NotNull PsiElement element) {
    final PyTargetExpression target = as(element, PyTargetExpression.class);
    if (target == null || target.isQualified()) {
      return false;
    }
    final PyAssignmentStatement assignment = as(target.getParent(), PyAssignmentStatement.class);
    return assignment != null && assignment.getTargets().length == 1;
  }
public static boolean isTargetOfSimpleAssignment(@NotNull PsiElement element)