@NotNull
  private static PsiElement handleSubscriptionsAndResolveSafely(@NotNull PyExpression element) {
    if (element instanceof PySubscriptionExpression) {
      element = ((PySubscriptionExpression)element).getRootOperand();
    }
    return PyUtil.resolveToTheTop(element);
  }
@NotNull
  private static PsiElement handleSubscriptionsAndResolveSafely(@NotNull PyExpression element)