@Override
    public void visitReferenceExpression(@NotNull PsiReferenceExpression expression) {
      PsiExpression qualifier = PsiUtil.skipParenthesizedExprDown(expression.getQualifierExpression());
      if (!(qualifier instanceof PsiMethodCallExpression call) ||
          !"length".equals(expression.getReferenceName()) ||
          !STRING_TO_CHAR_ARRAY.test(call)) {
        return;
      }
      myHolder.registerProblem(Objects.requireNonNull(call.getMethodExpression().getReferenceNameElement()),
                               InspectionGadgetsBundle.message("unnecessary.tostring.call.problem.descriptor"),
                               new RemoveToCharArrayCallFix());
    }
@Override
    public void visitReferenceExpression(@NotNull PsiReferenceExpression expression)