OptPane () { return pane( stringList("ignoredTypes", InspectionGadgetsBundle.message("ignored.autocloseable.types.label"), new JavaClassValidator().withSuperClass("java.lang.AutoCloseable") .withTitle(InspectionGadgetsBundle.message("choose.autocloseable.type.to.ignore.title"))), myMethodMatcher.getTable(InspectionGadgetsBundle.message("inspection.autocloseable.resource.ignored.methods.title")) .prefix("myMethodMatcher"), checkbox("ignoreFromMethodCall", InspectionGadgetsBundle.message("auto.closeable.resource.returned.option")), checkbox("anyMethodMayClose", InspectionGadgetsBundle.message("any.method.may.close.resource.argument")), checkbox("ignoreConstructorMethodReferences", InspectionGadgetsBundle.message("ignore.constructor.method.references")), checkbox("ignoreGettersReturningResource", InspectionGadgetsBundle.message("ignore.getters.returning.resource")) ); }