boolean (@NotNull String requiredVersion, @NotNull DefaultProjectResolverContext ctx) { String versionStr = ctx.getProjectGradleVersion(); if (versionStr != null) { return GradleVersion.version(versionStr).compareTo(GradleVersion.version(requiredVersion)) >= 0; } return false; }