boolean (@NotNull ChronoUnit chronoUnit, @NotNull String classQualifiedName) { return switch (classQualifiedName) { case CommonClassNames.JAVA_TIME_LOCAL_TIME -> chronoUnit.isTimeBased(); case CommonClassNames.JAVA_TIME_LOCAL_DATE_TIME -> chronoUnit != ChronoUnit.FOREVER; case CommonClassNames.JAVA_TIME_LOCAL_DATE -> chronoUnit.isDateBased(); case CommonClassNames.JAVA_TIME_OFFSET_TIME -> chronoUnit.isTimeBased(); case CommonClassNames.JAVA_TIME_OFFSET_DATE_TIME -> chronoUnit != ChronoUnit.FOREVER; case CommonClassNames.JAVA_TIME_ZONED_DATE_TIME -> chronoUnit != ChronoUnit.FOREVER; default -> false; }; }