boolean (@NotNull PsiMethod method, @NotNull String chronoEnumName) { return switch (method.getName()) { case "get" -> ChronoUtil.isAnyGetSupported(method, ChronoUtil.getChronoField(chronoEnumName)); case "with" -> ChronoUtil.isWithSupported(method, ChronoUtil.getChronoField(chronoEnumName)); case "plus", "minus" -> ChronoUtil.isPlusMinusSupported(method, ChronoUtil.getChronoUnit(chronoEnumName)); default -> false; }; }