/** Gets the supported Jack API version. This throws exception if no API is supported. */ @NonNull public JackVersion getSupportedJackApi() { for (JackVersion version : JackVersion.values()) { if (version.getSupportedBetween().contains(getRevision())) { return version; } } throw new UnsupportedOperationException("Jack API unsupported; update the build tools."); }