OptPane () { @Nls String[] options = { InspectionGadgetsBundle.message("all.levels.option"), InspectionGadgetsBundle.message("warn.level.and.lower.option"), InspectionGadgetsBundle.message("info.level.and.lower.option"), InspectionGadgetsBundle.message("debug.level.and.lower.option"), InspectionGadgetsBundle.message("trace.level.option") }; return pane( dropdown("warnLevel", InspectionGadgetsBundle.message("warn.on.label"), EntryStream.of(options).mapKeyValue((idx, name) -> option(String.valueOf(idx), name)) .toArray(OptDropdown.Option.class)) ); }