boolean (PluginTargetVersions targetVersions, TestWithKotlinPluginAndGradleVersions testCase) { var gradleVersion = testCase.getGradleVersion(); var pluginVersion = testCase.getKotlinPluginVersion(); var gradleVersionMatcher = createMatcher("Gradle", targetVersions.gradleVersion()); var kotlinVersionRequirement = KotlinVersionUtils.parseKotlinVersionRequirement(targetVersions.pluginVersion()); boolean matchGradleVersion = gradleVersionMatcher == null || gradleVersionMatcher.matches(gradleVersion); return matchGradleVersion && KotlinVersionUtils.matches(kotlinVersionRequirement, pluginVersion); }