@Override
        @Nullable
        public String getTooltipText() {
          if (element instanceof PsiExpression expression) {
            final PsiType type = expression.isValid() ? expression.getType() : null;
            if (type == null) return null;
            return JavaBundle.message("type.migration.cannot.convert.tooltip", type.getCanonicalText(), pair.getSecond().getCanonicalText());
          }
          else {
            return JavaBundle.message("type.migration.cannot.convert.vararg.tooltip");
          }
        }
@Override
        @Nullable
        public String getTooltipText()