String (Object... infos) { final Object element = infos[0]; if (element instanceof PsiAnonymousClass) { return InspectionGadgetsBundle.message("empty.anonymous.class.problem.descriptor"); } else if (element instanceof PsiClass) { return ((PsiClass)element).isEnum() ? InspectionGadgetsBundle.message("empty.enum.problem.descriptor"): InspectionGadgetsBundle.message("empty.class.problem.descriptor"); } else { return InspectionGadgetsBundle.message("empty.class.file.without.class.problem.descriptor"); } }