String (Object... infos) { return switch ((WarningType)infos[0]) { case MODULE -> InspectionGadgetsBundle.message("unnecessary.inherit.doc.module.invalid.problem.descriptor"); case CLASS -> InspectionGadgetsBundle.message("unnecessary.inherit.doc.class.invalid.problem.descriptor"); case FIELD -> InspectionGadgetsBundle.message("unnecessary.inherit.doc.field.invalid.problem.descriptor"); case CONSTRUCTOR -> InspectionGadgetsBundle.message("unnecessary.inherit.doc.constructor.invalid.problem.descriptor"); case NO_SUPER -> InspectionGadgetsBundle.message("unnecessary.inherit.doc.constructor.no.super.problem.descriptor"); case EMPTY -> InspectionGadgetsBundle.message("unnecessary.inherit.doc.problem.descriptor"); }; }