@Override
    protected void applyFix(@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) {
      final GrConditionalExpression expression = (GrConditionalExpression) element;
      final GrBinaryExpression binaryCondition = (GrBinaryExpression)PsiUtil.skipParentheses(expression.getCondition(), false);
      if (binaryCondition == null) {
        return;
      }
      final GrExpression branch;
      if (GrInspectionUtil.isInequality(binaryCondition)) {
        branch = expression.getThenBranch();
      } else {
        branch = expression.getElseBranch();
      }
      if (!(branch instanceof GrMethodCallExpression call)) {
        return;
      }
      final GrReferenceExpression methodExpression = (GrReferenceExpression) call.getInvokedExpression();
      final GrExpression qualifier = methodExpression.getQualifierExpression();
      if (qualifier == null) {
        return;
      }
      final String methodName = methodExpression.getReferenceName();
      final GrArgumentList argumentList = call.getArgumentList();
      GrInspectionUtil.replaceExpression(expression, qualifier.getText() + "?." + methodName + argumentList.getText());
    }
@Override
    protected void applyFix(@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater)