void (@NotNull PsiTemplate template) { super.visitTemplate(template); add(checkFeature(template, HighlightingFeature.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)); } } }