String (Object... infos) { final PsiElement element = (PsiElement)infos[0]; if (element instanceof PsiNewExpression) { return InspectionGadgetsBundle.message("new.string.buffer.replaceable.by.string.problem.descriptor"); } final String typeText = ((PsiType)infos[1]).getPresentableText(); return InspectionGadgetsBundle.message("string.buffer.replaceable.by.string.problem.descriptor", typeText); }