OptPane () { List<OptRegularComponent> checkboxes = new ArrayList<>(List.of( checkbox("SUGGEST_PACKAGE_LOCAL_FOR_MEMBERS", JavaAnalysisBundle.message("inspection.visibility.option.package.private.members")), checkbox("SUGGEST_PACKAGE_LOCAL_FOR_TOP_CLASSES", JavaAnalysisBundle.message( "inspection.visibility.package.private.top.level.classes")), checkbox("SUGGEST_PRIVATE_FOR_INNERS", JavaAnalysisBundle.message("inspection.visibility.private.inner.members")), checkbox("SUGGEST_FOR_CONSTANTS", JavaAnalysisBundle.message("inspection.visibility.option.constants")) )); for (EntryPoint entryPoint : EntryPointsManagerBase.DEAD_CODE_EP_NAME.getExtensionList()) { if (entryPoint instanceof EntryPointWithVisibilityLevel epWithLevel) { checkboxes.add(checkbox(epWithLevel.getId(), epWithLevel.getTitle()).prefix("ep")); } } return new OptPane(checkboxes); }