String (Object... infos) { final PsiField field = (PsiField)infos[0]; final PsiExpression rhs = (PsiExpression)infos[1]; final PsiType type = field.getType(); final boolean assignment = ((Boolean)infos[3]).booleanValue(); return assignment ? InspectionGadgetsBundle.message("assignment.of.field.with.mutable.type.problem.descriptor", type.getPresentableText(), field.getName(), rhs.getText()) : InspectionGadgetsBundle.message("return.of.field.with.mutable.type.problem.descriptor", type.getPresentableText(), field.getName()); }