Tests: migrate data class copy Gradle tests

They were added in 3ad94dab and 890bebd9 with comments about how
diagnostic tests use source dependencies between modules, whereas here
we need a binary one. JvmIntegrationDiagnostic test uses binary
dependencies, so it should be equivalent to usages in a real project.
diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeJvmIntegrationDiagnosticTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeJvmIntegrationDiagnosticTestGenerated.java
index ba85c4a..84b2729 100644
--- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeJvmIntegrationDiagnosticTestGenerated.java
+++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeJvmIntegrationDiagnosticTestGenerated.java
@@ -59,6 +59,28 @@
   }
 
   @Nested
+  @TestMetadata("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor")
+  @TestDataPath("$PROJECT_ROOT")
+  public class DataClassNonPublicConstructor {
+    @Test
+    public void testAllFilesPresentInDataClassNonPublicConstructor() {
+      KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+    }
+
+    @Test
+    @TestMetadata("dataClassInternalConstructorUsageWillBecomeInaccessible.kt")
+    public void testDataClassInternalConstructorUsageWillBecomeInaccessible() {
+      runTest("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.kt");
+    }
+
+    @Test
+    @TestMetadata("dataClassNonPublicConstructorIrrelevantCopyFunctions.kt")
+    public void testDataClassNonPublicConstructorIrrelevantCopyFunctions() {
+      runTest("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.kt");
+    }
+  }
+
+  @Nested
   @TestMetadata("compiler/testData/diagnostics/jvmIntegration/inline")
   @TestDataPath("$PROJECT_ROOT")
   public class Inline {
diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiJvmIntegrationDiagnosticTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiJvmIntegrationDiagnosticTestGenerated.java
index 20bb89e..0f5a0c9 100644
--- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiJvmIntegrationDiagnosticTestGenerated.java
+++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiJvmIntegrationDiagnosticTestGenerated.java
@@ -59,6 +59,28 @@
   }
 
   @Nested
+  @TestMetadata("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor")
+  @TestDataPath("$PROJECT_ROOT")
+  public class DataClassNonPublicConstructor {
+    @Test
+    public void testAllFilesPresentInDataClassNonPublicConstructor() {
+      KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+    }
+
+    @Test
+    @TestMetadata("dataClassInternalConstructorUsageWillBecomeInaccessible.kt")
+    public void testDataClassInternalConstructorUsageWillBecomeInaccessible() {
+      runTest("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.kt");
+    }
+
+    @Test
+    @TestMetadata("dataClassNonPublicConstructorIrrelevantCopyFunctions.kt")
+    public void testDataClassNonPublicConstructorIrrelevantCopyFunctions() {
+      runTest("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.kt");
+    }
+  }
+
+  @Nested
   @TestMetadata("compiler/testData/diagnostics/jvmIntegration/inline")
   @TestDataPath("$PROJECT_ROOT")
   public class Inline {
diff --git a/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.fir.kt b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.fir.kt
new file mode 100644
index 0000000..7236fd9
--- /dev/null
+++ b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.fir.kt
@@ -0,0 +1,15 @@
+// MODULE: lib
+// FILE: Lib.kt
+@ExposedCopyVisibility
+data class Foo private constructor(val x: Int) {
+    companion object {
+        fun new() = Foo(1)
+    }
+}
+
+// MODULE: main(lib)
+// KOTLINC_ARGS: -progressive
+// FILE: main.kt
+fun main() {
+    Foo.new().<!DATA_CLASS_INVISIBLE_COPY_USAGE_ERROR!>copy<!>()
+}
diff --git a/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.kt b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.kt
new file mode 100644
index 0000000..6879fb4
--- /dev/null
+++ b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.kt
@@ -0,0 +1,15 @@
+// MODULE: lib
+// FILE: Lib.kt
+@<!UNRESOLVED_REFERENCE!>ExposedCopyVisibility<!>
+data class Foo private constructor(val x: Int) {
+    companion object {
+        fun new() = Foo(1)
+    }
+}
+
+// MODULE: main(lib)
+// KOTLINC_ARGS: -progressive
+// FILE: main.kt
+fun main() {
+    <!UNRESOLVED_REFERENCE!>Foo<!>.new().copy()
+}
diff --git a/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.out b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.out
new file mode 100644
index 0000000..713856b
--- /dev/null
+++ b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.out
@@ -0,0 +1,2 @@
+warning: '-progressive' is meaningful only for the latest language version (2.0), while this build uses 1.9
+Compiler behavior in such mode is undefined; please, consider moving to the latest stable version or turning off progressive mode.
diff --git a/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.fir.kt b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.fir.kt
new file mode 100644
index 0000000..bc6d9cb
--- /dev/null
+++ b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.fir.kt
@@ -0,0 +1,17 @@
+// MODULE: lib
+// KOTLINC_ARGS: -XXLanguage:+ErrorAboutDataClassCopyVisibilityChange -XXLanguage:+DataClassCopyRespectsConstructorVisibility
+// FILE: Lib.kt
+data class Data private constructor(val value: String)
+
+fun copy(value: String = ""): Data = null!!
+class IrrelevantClass {
+    fun copy(value: String = ""): Data = null!!
+}
+
+// MODULE: main(lib)
+// KOTLINC_ARGS: -progressive -XXLanguage:+ErrorAboutDataClassCopyVisibilityChange -XXLanguage:+DataClassCopyRespectsConstructorVisibility
+// FILE: main.kt
+fun test(irrelevantClass: IrrelevantClass) {
+    copy()
+    irrelevantClass.copy()
+}
diff --git a/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.fir.out b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.fir.out
new file mode 100644
index 0000000..e3663e1
--- /dev/null
+++ b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.fir.out
@@ -0,0 +1,19 @@
+Module: lib
+warning: ATTENTION!
+This build uses unsafe internal compiler arguments:
+
+-XXLanguage:+DataClassCopyRespectsConstructorVisibility
+
+This mode is not recommended for production use,
+as no stability/compatibility guarantees are given on
+compiler or generated code. Use it at your own risk!
+
+Module: main
+warning: ATTENTION!
+This build uses unsafe internal compiler arguments:
+
+-XXLanguage:+DataClassCopyRespectsConstructorVisibility
+
+This mode is not recommended for production use,
+as no stability/compatibility guarantees are given on
+compiler or generated code. Use it at your own risk!
diff --git a/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.kt b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.kt
new file mode 100644
index 0000000..fd71c8d
--- /dev/null
+++ b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.kt
@@ -0,0 +1,17 @@
+// MODULE: lib
+// KOTLINC_ARGS: -XXLanguage:+ErrorAboutDataClassCopyVisibilityChange -XXLanguage:+DataClassCopyRespectsConstructorVisibility
+// FILE: Lib.kt
+data class Data private constructor(val value: String)
+
+fun copy(<!UNUSED_PARAMETER!>value<!>: String = ""): Data = null!!
+class IrrelevantClass {
+    fun copy(<!UNUSED_PARAMETER!>value<!>: String = ""): Data = null!!
+}
+
+// MODULE: main(lib)
+// KOTLINC_ARGS: -progressive -XXLanguage:+ErrorAboutDataClassCopyVisibilityChange -XXLanguage:+DataClassCopyRespectsConstructorVisibility
+// FILE: main.kt
+fun test(irrelevantClass: IrrelevantClass) {
+    copy()
+    irrelevantClass.copy()
+}
diff --git a/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.out b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.out
new file mode 100644
index 0000000..c75b534
--- /dev/null
+++ b/compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.out
@@ -0,0 +1,22 @@
+Module: lib
+warning: ATTENTION!
+This build uses unsafe internal compiler arguments:
+
+-XXLanguage:+DataClassCopyRespectsConstructorVisibility
+
+This mode is not recommended for production use,
+as no stability/compatibility guarantees are given on
+compiler or generated code. Use it at your own risk!
+
+Module: main
+warning: ATTENTION!
+This build uses unsafe internal compiler arguments:
+
+-XXLanguage:+DataClassCopyRespectsConstructorVisibility
+
+This mode is not recommended for production use,
+as no stability/compatibility guarantees are given on
+compiler or generated code. Use it at your own risk!
+
+warning: '-progressive' is meaningful only for the latest language version (2.0), while this build uses 1.9
+Compiler behavior in such mode is undefined; please, consider moving to the latest stable version or turning off progressive mode.
diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ClassicJvmIntegrationDiagnosticTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ClassicJvmIntegrationDiagnosticTestGenerated.java
index 0430bc1..178c422 100644
--- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ClassicJvmIntegrationDiagnosticTestGenerated.java
+++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ClassicJvmIntegrationDiagnosticTestGenerated.java
@@ -59,6 +59,28 @@
   }
 
   @Nested
+  @TestMetadata("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor")
+  @TestDataPath("$PROJECT_ROOT")
+  public class DataClassNonPublicConstructor {
+    @Test
+    public void testAllFilesPresentInDataClassNonPublicConstructor() {
+      KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+    }
+
+    @Test
+    @TestMetadata("dataClassInternalConstructorUsageWillBecomeInaccessible.kt")
+    public void testDataClassInternalConstructorUsageWillBecomeInaccessible() {
+      runTest("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassInternalConstructorUsageWillBecomeInaccessible.kt");
+    }
+
+    @Test
+    @TestMetadata("dataClassNonPublicConstructorIrrelevantCopyFunctions.kt")
+    public void testDataClassNonPublicConstructorIrrelevantCopyFunctions() {
+      runTest("compiler/testData/diagnostics/jvmIntegration/dataClassNonPublicConstructor/dataClassNonPublicConstructorIrrelevantCopyFunctions.kt");
+    }
+  }
+
+  @Nested
   @TestMetadata("compiler/testData/diagnostics/jvmIntegration/inline")
   @TestDataPath("$PROJECT_ROOT")
   public class Inline {
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/SimpleKotlinGradleIT.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/SimpleKotlinGradleIT.kt
index 457d5c9..e579fcf 100644
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/SimpleKotlinGradleIT.kt
+++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/SimpleKotlinGradleIT.kt
@@ -90,22 +90,6 @@
     }
 
     @GradleTest
-    fun testDataClassInternalConstructorUsageWillBecomeInaccessible(gradleVersion: GradleVersion) {
-        project("dataClassInternalConstructorUsageWillBecomeInaccessible", gradleVersion) {
-            buildAndFail("assemble") {
-                assertOutputContains("This 'copy()' exposes the non-public primary constructor of a 'data class'. Please migrate the usage.")
-            }
-        }
-    }
-
-    @GradleTest
-    fun testDataClassNonPublicConstructorIrrelevantCopyFunctions(gradleVersion: GradleVersion) {
-        project("dataClassNonPublicConstructorIrrelevantCopyFunctions", gradleVersion) {
-            build("assemble")
-        }
-    }
-
-    @GradleTest
     @DisplayName("Should produce '.kotlin_module' file with specified name")
     fun testModuleName(gradleVersion: GradleVersion) {
         project("moduleName", gradleVersion) {
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/build.gradle.kts
deleted file mode 100644
index 0e6aecb..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/build.gradle.kts
+++ /dev/null
@@ -1,20 +0,0 @@
-import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
-import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
-
-plugins {
-    kotlin("jvm")
-}
-
-repositories {
-    mavenLocal()
-    mavenCentral()
-}
-
-dependencies {
-    implementation(project(":lib"))
-}
-
-tasks.withType<KotlinJvmCompile>().configureEach {
-    compilerOptions.progressiveMode.set(true)
-    compilerOptions.languageVersion.set(KotlinVersion.KOTLIN_2_0)
-}
\ No newline at end of file
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/lib/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/lib/build.gradle.kts
deleted file mode 100644
index 6a6b756..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/lib/build.gradle.kts
+++ /dev/null
@@ -1,15 +0,0 @@
-import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
-import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
-
-plugins {
-    kotlin("jvm")
-}
-
-repositories {
-    mavenLocal()
-    mavenCentral()
-}
-
-tasks.withType<KotlinJvmCompile>().configureEach {
-    compilerOptions.languageVersion.set(KotlinVersion.KOTLIN_2_0)
-}
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/lib/src/main/kotlin/Lib.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/lib/src/main/kotlin/Lib.kt
deleted file mode 100644
index 6b14ef5..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/lib/src/main/kotlin/Lib.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-@ExposedCopyVisibility
-data class Foo private constructor(val x: Int) {
-    companion object {
-        fun new() = Foo(1)
-    }
-}
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/settings.gradle.kts b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/settings.gradle.kts
deleted file mode 100644
index 408a5e7..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/settings.gradle.kts
+++ /dev/null
@@ -1 +0,0 @@
-include(":lib")
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/src/main/kotlin/main.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/src/main/kotlin/main.kt
deleted file mode 100644
index 79adf32..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassInternalConstructorUsageWillBecomeInaccessible/src/main/kotlin/main.kt
+++ /dev/null
@@ -1,3 +0,0 @@
-fun main() {
-    Foo.new().copy()
-}
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/build.gradle.kts
deleted file mode 100644
index c068941..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/build.gradle.kts
+++ /dev/null
@@ -1,22 +0,0 @@
-import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
-import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
-
-plugins {
-    kotlin("jvm")
-}
-
-repositories {
-    mavenLocal()
-    mavenCentral()
-}
-
-dependencies {
-    implementation(project(":lib"))
-}
-
-tasks.withType<KotlinJvmCompile>().configureEach {
-    compilerOptions.progressiveMode.set(true)
-    compilerOptions.languageVersion.set(KotlinVersion.KOTLIN_2_0)
-    compilerOptions.freeCompilerArgs.add("-XXLanguage:+ErrorAboutDataClassCopyVisibilityChange")
-    compilerOptions.freeCompilerArgs.add("-XXLanguage:+DataClassCopyRespectsConstructorVisibility")
-}
\ No newline at end of file
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/lib/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/lib/build.gradle.kts
deleted file mode 100644
index ddb4117..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/lib/build.gradle.kts
+++ /dev/null
@@ -1,17 +0,0 @@
-import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
-import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
-
-plugins {
-    kotlin("jvm")
-}
-
-repositories {
-    mavenLocal()
-    mavenCentral()
-}
-
-tasks.withType<KotlinJvmCompile>().configureEach {
-    compilerOptions.languageVersion.set(KotlinVersion.KOTLIN_2_0)
-    compilerOptions.freeCompilerArgs.add("-XXLanguage:+ErrorAboutDataClassCopyVisibilityChange")
-    compilerOptions.freeCompilerArgs.add("-XXLanguage:+DataClassCopyRespectsConstructorVisibility")
-}
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/lib/src/main/kotlin/Lib.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/lib/src/main/kotlin/Lib.kt
deleted file mode 100644
index e5a734b..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/lib/src/main/kotlin/Lib.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-data class Data private constructor(val value: String)
-
-fun copy(value: String = ""): Data = null!!
-class IrrelevantClass {
-    fun copy(value: String = ""): Data = null!!
-}
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/settings.gradle.kts b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/settings.gradle.kts
deleted file mode 100644
index 408a5e7..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/settings.gradle.kts
+++ /dev/null
@@ -1 +0,0 @@
-include(":lib")
diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/src/main/kotlin/main.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/src/main/kotlin/main.kt
deleted file mode 100644
index ce39ca8..0000000
--- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/dataClassNonPublicConstructorIrrelevantCopyFunctions/src/main/kotlin/main.kt
+++ /dev/null
@@ -1,4 +0,0 @@
-fun test(irrelevantClass: IrrelevantClass) {
-    copy() // expect: ok, actual: DATA_CLASS_INVISIBLE_COPY_USAGE_WARNING
-    irrelevantClass.copy() // expect: ok, actual: DATA_CLASS_INVISIBLE_COPY_USAGE_WARNING
-}