private static @NotNull ModCommand invoke(@NotNull PyReferenceExpression refExpr, boolean unqualifyAll) {
    return ModCommand.psiUpdate(refExpr, refExprCopy -> {
      createAndCheckState(refExprCopy).invoke(unqualifyAll);
    });
  }
private static @NotNull ModCommand invoke(@NotNull PyReferenceExpression refExpr, boolean unqualifyAll)