MergeCheckResult (@NotNull SvnChangeList changeList) { Set<String> notMergedPaths = new HashSet<>(); boolean hasMergedPaths = false; for (String path : changeList.getAffectedPaths()) { //noinspection EnumSwitchStatementWhichMissesCases switch (checkPath(path, changeList.getNumber())) { case MERGED -> hasMergedPaths = true; case NOT_MERGED -> notMergedPaths.add(path); } } if (hasMergedPaths && !notMergedPaths.isEmpty()) { myPartiallyMerged.put(changeList.getNumber(), notMergedPaths); } return notMergedPaths.isEmpty() ? hasMergedPaths ? MergeCheckResult.MERGED : MergeCheckResult.NOT_EXISTS : MergeCheckResult.NOT_MERGED; }