@Override
  public void visitTemplate(@NotNull PsiTemplate template) {
    super.visitTemplate(template);
    add(checkFeature(template, JavaFeature.STRING_TEMPLATES));
    if (hasErrorResults()) return;

    for (PsiExpression embeddedExpression : template.getEmbeddedExpressions()) {
      if (PsiTypes.voidType().equals(embeddedExpression.getType())) {
        String message = JavaErrorBundle.message("expression.with.type.void.not.allowed.as.string.template.embedded.expression");
        add(HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(embeddedExpression).descriptionAndTooltip(message));
      }
    }
  }
@Override
  public void visitTemplate(@NotNull PsiTemplate template)