void (@NotNull BranchBase<?> branch, BranchBase<?> defaultBranch, LevelType state) { List<LocalQuickFix> fixes = new ArrayList<>(); LocalQuickFix deleteCaseFix = branch.deleteCaseFix(); ContainerUtil.addIfNotNull(fixes, deleteCaseFix); LocalQuickFix mergeWithDefaultFix = branch.mergeWithDefaultFix(defaultBranch); ContainerUtil.addIfNotNull(fixes, mergeWithDefaultFix); if (!fixes.isEmpty()) { registerProblem(branch, branch.getDefaultBranchMessage(), state, fixes.toArray(LocalQuickFix.EMPTY_ARRAY)); } }