Arguments (@NotNull Arguments arguments, @NotNull ExtensionContext context) { Assertions.assertNull(getTargetVersionsAnnotation(context), """ @TargetVersions filter annotation isn't supported for Gradle JUnit 5 tests. Please, use assumptions on Gradle version instead. See, also: org.jetbrains.plugins.gradle.testFramework.util.GradleVersionAssumptionUtil """); var collection = new ArrayList<>(); Collections.addAll(collection, arguments.get()); collection.set(0, GradleVersion.version(collection.get(0).toString())); return Arguments.of(collection.toArray()); }