diff --git a/idea/testData/findUsages/java/findConstructorUsages/secondaryConstructorByJavaNewExpression.results.txt b/idea/testData/findUsages/java/findConstructorUsages/secondaryConstructorByJavaNewExpression.results.txt
index 966a8bc7257..708badfba64 100644
--- a/idea/testData/findUsages/java/findConstructorUsages/secondaryConstructorByJavaNewExpression.results.txt
+++ b/idea/testData/findUsages/java/findConstructorUsages/secondaryConstructorByJavaNewExpression.results.txt
@@ -1,6 +1,6 @@
-New instance creation (10: 13) new B("");
-New instance creation (22: 5) B("")
-Supertype (17: 11) class C : B("") {
-Unclassified usage (12: 27) constructor(a: Int) : super("") {
-Unclassified usage (2: 20) constructor(): this("") {
-Unclassified usage (6: 9) super("");
\ No newline at end of file
+[secondaryConstructorByJavaNewExpression.0.java] New instance creation (10: 13) new B("");
+[secondaryConstructorByJavaNewExpression.0.java] Unclassified usage (6: 9) super("");
+[secondaryConstructorByJavaNewExpression.1.kt] New instance creation (22: 5) B("")
+[secondaryConstructorByJavaNewExpression.1.kt] Supertype (17: 11) class C : B("") {
+[secondaryConstructorByJavaNewExpression.1.kt] Unclassified usage (12: 27) constructor(a: Int) : super("") {
+[secondaryConstructorByJavaNewExpression.1.kt] Unclassified usage (2: 20) constructor(): this("") {
\ No newline at end of file
diff --git a/idea/testData/findUsages/java/findConstructorUsages/secondaryConstructorByJavaSuperCall.results.txt b/idea/testData/findUsages/java/findConstructorUsages/secondaryConstructorByJavaSuperCall.results.txt
index 966a8bc7257..20002d57d0e 100644
--- a/idea/testData/findUsages/java/findConstructorUsages/secondaryConstructorByJavaSuperCall.results.txt
+++ b/idea/testData/findUsages/java/findConstructorUsages/secondaryConstructorByJavaSuperCall.results.txt
@@ -1,6 +1,6 @@
-New instance creation (10: 13) new B("");
-New instance creation (22: 5) B("")
-Supertype (17: 11) class C : B("") {
-Unclassified usage (12: 27) constructor(a: Int) : super("") {
-Unclassified usage (2: 20) constructor(): this("") {
-Unclassified usage (6: 9) super("");
\ No newline at end of file
+[secondaryConstructorByJavaSuperCall.0.java] New instance creation (10: 13) new B("");
+[secondaryConstructorByJavaSuperCall.0.java] Unclassified usage (6: 9) super("");
+[secondaryConstructorByJavaSuperCall.1.kt] New instance creation (22: 5) B("")
+[secondaryConstructorByJavaSuperCall.1.kt] Supertype (17: 11) class C : B("") {
+[secondaryConstructorByJavaSuperCall.1.kt] Unclassified usage (12: 27) constructor(a: Int) : super("") {
+[secondaryConstructorByJavaSuperCall.1.kt] Unclassified usage (2: 20) constructor(): this("") {
\ No newline at end of file
diff --git a/idea/testData/findUsages/java/findJavaMethodUsages/JKMethodOverrides.results.txt b/idea/testData/findUsages/java/findJavaMethodUsages/JKMethodOverrides.results.txt
index 6ed8b4a11d5..0e4831aa8cf 100644
--- a/idea/testData/findUsages/java/findJavaMethodUsages/JKMethodOverrides.results.txt
+++ b/idea/testData/findUsages/java/findJavaMethodUsages/JKMethodOverrides.results.txt
@@ -1,4 +1,4 @@
-Unclassified usage (11: 17) public void foo() {
-Unclassified usage (14: 25) public override fun foo() {
-Unclassified usage (2: 25) public override fun foo() {
-Unclassified usage (8: 25) public override fun foo() {
+[JKMethodOverrides.0.java] Unclassified usage (11: 17) public void foo() {
+[JKMethodOverrides.1.kt] Unclassified usage (14: 25) public override fun foo() {
+[JKMethodOverrides.1.kt] Unclassified usage (2: 25) public override fun foo() {
+[JKMethodOverrides.1.kt] Unclassified usage (8: 25) public override fun foo() {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/conventions/componentFunctions.results.txt b/idea/testData/findUsages/kotlin/conventions/componentFunctions.results.txt
index 68bbfba6331..4af815b8900 100644
--- a/idea/testData/findUsages/kotlin/conventions/componentFunctions.results.txt
+++ b/idea/testData/findUsages/kotlin/conventions/componentFunctions.results.txt
@@ -1,4 +1,4 @@
-Function call (9: 7) a.component1()
-Value read (10: 9) val (x, y, z) = a
-Value read (2: 10) for ((x, y, z) in array()) {
-Value read (8: 7) a.n
\ No newline at end of file
+[componentFunctions.0.kt] Function call (9: 7) a.component1()
+[componentFunctions.0.kt] Value read (10: 9) val (x, y, z) = a
+[componentFunctions.0.kt] Value read (8: 7) a.n
+[componentFunctions.1.kt] Value read (2: 10) for ((x, y, z) in array()) {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedClassUsages2.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedClassUsages2.results.txt
index f0ba20c0315..4b57f10b6cb 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedClassUsages2.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedClassUsages2.results.txt
@@ -1,3 +1,3 @@
-Unclassified usage (11: 12) open class C: Y {
-Unclassified usage (1: 7) class B extends A {
-Unclassified usage (7: 12) open class A: X {
\ No newline at end of file
+[javaDerivedClassUsages2.0.kt] Unclassified usage (11: 12) open class C: Y {
+[javaDerivedClassUsages2.0.kt] Unclassified usage (7: 12) open class A: X {
+[javaDerivedClassUsages2.1.java] Unclassified usage (1: 7) class B extends A {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages1.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages1.results.txt
index ff4aa1e0ee8..a4392d1966b 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages1.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages1.results.txt
@@ -1,2 +1,2 @@
-Unclassified usage (15: 11) interface Z: A {
-Unclassified usage (9: 11) interface U extends Z {
\ No newline at end of file
+[javaDerivedInterfaceUsages1.0.kt] Unclassified usage (15: 11) interface Z: A {
+[javaDerivedInterfaceUsages1.1.java] Unclassified usage (9: 11) interface U extends Z {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages2.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages2.results.txt
index f65dd90603c..c9bbb41822b 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages2.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/javaDerivedInterfaceUsages2.results.txt
@@ -1,3 +1,3 @@
-Unclassified usage (15: 11) interface Z: A {
-Unclassified usage (5: 11) interface Y extends X {
-Unclassified usage (9: 11) interface U extends Z {
\ No newline at end of file
+[javaDerivedInterfaceUsages2.0.kt] Unclassified usage (15: 11) interface Z: A {
+[javaDerivedInterfaceUsages2.1.java] Unclassified usage (5: 11) interface Y extends X {
+[javaDerivedInterfaceUsages2.1.java] Unclassified usage (9: 11) interface U extends Z {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinClassConstructorUsages.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinClassConstructorUsages.results.txt
index a0c115120e8..23062dcb4a6 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinClassConstructorUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinClassConstructorUsages.results.txt
@@ -1,5 +1,5 @@
-Supertype (24: 22) object ClientObject: Server() {
-Supertype (5: 15) class Client: Server() {
-Unclassified usage (29: 31) constructor(name: String) {
-Unclassified usage (33: 20) constructor(): super() {
-Unclassified usage (6: 32) constructor(name: String): this() {
\ No newline at end of file
+[kotlinClassConstructorUsages.0.kt] Unclassified usage (6: 32) constructor(name: String): this() {
+[kotlinClassConstructorUsages.1.kt] Supertype (24: 22) object ClientObject: Server() {
+[kotlinClassConstructorUsages.1.kt] Supertype (5: 15) class Client: Server() {
+[kotlinClassConstructorUsages.1.kt] Unclassified usage (29: 31) constructor(name: String) {
+[kotlinClassConstructorUsages.1.kt] Unclassified usage (33: 20) constructor(): super() {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinDeeplyNestedClassAllUsages.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinDeeplyNestedClassAllUsages.results.txt
index 9dfbbfc9a98..379dc2251b8 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinDeeplyNestedClassAllUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinDeeplyNestedClassAllUsages.results.txt
@@ -1,21 +1,21 @@
-Class/object property type (6: 21) var next: Inner.A? = Inner.A()
-Companion object (10: 15) Inner.A.bar = ""
-Companion object (11: 15) Inner.A.foo()
-Companion object (5: 37) public class X(bar: String? = Inner.A.bar): Inner.A() {
-Companion object (7: 32) val myBar: String? = Inner.A.bar
-Field declaration (6: 11) Inner.A next = new Inner.A();
-Function return types (19: 26) fun getNext(): Inner.A? {
-Function return types (40: 22) fun Any.toA(): Inner.A? {
-Local variable declaration (15: 23) val aa: Inner.A = a
-New instance creation (36: 30) fun X.bar(a: Inner.A = Inner.A()) {
-New instance creation (6: 30) Inner.A next = new Inner.A();
-New instance creation (6: 32) var next: Inner.A? = Inner.A()
-Parameter type (14: 22) fun foo(a: Inner.A) {
-Parameter type (36: 20) fun X.bar(a: Inner.A = Inner.A()) {
-Super type qualifier (24: 21) super.foo()
-Supertype (27: 29) companion object: Inner.A() {
-Supertype (32: 17) object O: Inner.A() {
-Supertype (5: 51) public class X(bar: String? = Inner.A.bar): Inner.A() {
-Target type of 'is' operation (41: 30) return if (this is Inner.A) this as Inner.A else null
-Usage in cast target type (41: 47) return if (this is Inner.A) this as Inner.A else null
-Usage in extends/implements clause (5: 30) public class X extends Inner.A {
+[kotlinDeeplyNestedClassAllUsages.1.kt] Class/object property type (6: 21) var next: Inner.A? = Inner.A()
+[kotlinDeeplyNestedClassAllUsages.1.kt] Companion object (10: 15) Inner.A.bar = ""
+[kotlinDeeplyNestedClassAllUsages.1.kt] Companion object (11: 15) Inner.A.foo()
+[kotlinDeeplyNestedClassAllUsages.1.kt] Companion object (5: 37) public class X(bar: String? = Inner.A.bar): Inner.A() {
+[kotlinDeeplyNestedClassAllUsages.1.kt] Companion object (7: 32) val myBar: String? = Inner.A.bar
+[kotlinDeeplyNestedClassAllUsages.1.kt] Function return types (19: 26) fun getNext(): Inner.A? {
+[kotlinDeeplyNestedClassAllUsages.1.kt] Function return types (40: 22) fun Any.toA(): Inner.A? {
+[kotlinDeeplyNestedClassAllUsages.1.kt] Local variable declaration (15: 23) val aa: Inner.A = a
+[kotlinDeeplyNestedClassAllUsages.1.kt] New instance creation (36: 30) fun X.bar(a: Inner.A = Inner.A()) {
+[kotlinDeeplyNestedClassAllUsages.1.kt] New instance creation (6: 32) var next: Inner.A? = Inner.A()
+[kotlinDeeplyNestedClassAllUsages.1.kt] Parameter type (14: 22) fun foo(a: Inner.A) {
+[kotlinDeeplyNestedClassAllUsages.1.kt] Parameter type (36: 20) fun X.bar(a: Inner.A = Inner.A()) {
+[kotlinDeeplyNestedClassAllUsages.1.kt] Super type qualifier (24: 21) super.foo()
+[kotlinDeeplyNestedClassAllUsages.1.kt] Supertype (27: 29) companion object: Inner.A() {
+[kotlinDeeplyNestedClassAllUsages.1.kt] Supertype (32: 17) object O: Inner.A() {
+[kotlinDeeplyNestedClassAllUsages.1.kt] Supertype (5: 51) public class X(bar: String? = Inner.A.bar): Inner.A() {
+[kotlinDeeplyNestedClassAllUsages.1.kt] Target type of 'is' operation (41: 30) return if (this is Inner.A) this as Inner.A else null
+[kotlinDeeplyNestedClassAllUsages.1.kt] Usage in cast target type (41: 47) return if (this is Inner.A) this as Inner.A else null
+[kotlinDeeplyNestedClassAllUsages.2.java] Field declaration (6: 11) Inner.A next = new Inner.A();
+[kotlinDeeplyNestedClassAllUsages.2.java] New instance creation (6: 30) Inner.A next = new Inner.A();
+[kotlinDeeplyNestedClassAllUsages.2.java] Usage in extends/implements clause (5: 30) public class X extends Inner.A {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinInnerClassAllUsages.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinInnerClassAllUsages.results.txt
index 2ca1543a6e2..3a0f69b0616 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinInnerClassAllUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinInnerClassAllUsages.results.txt
@@ -1,21 +1,21 @@
-Class/object property type (7: 25) var next: Outer.A? = (this@KOuter : Outer).A()
-Field declaration (10: 5) A next = new A();
-Function return types (19: 30) fun getNext(): Outer.A? {
-Function return types (33: 22) fun Any.toA(): Outer.A? {
-Function return types (37: 27) fun Any.asServer(): Outer.A? {
-Local variable declaration (15: 27) val aa: Outer.A = a
-New instance creation (10: 18) A next = new A();
-New instance creation (11: 35) (this@KOuter : Outer).A().bar = ""
-New instance creation (29: 39) fun KOuter.X.bar(a: Outer.A = Outer().A()) {
-New instance creation (6: 63) public inner class X(bar: String? = (this@KOuter : Outer).A().bar): Outer.A() {
-New instance creation (7: 52) var next: Outer.A? = (this@KOuter : Outer).A()
-New instance creation (8: 52) val myBar: String? = (this@KOuter : Outer).A().bar
-Parameter type (14: 26) fun foo(a: Outer.A) {
-Parameter type (29: 27) fun KOuter.X.bar(a: Outer.A = Outer().A()) {
-Super type qualifier (24: 25) super.foo()
-Supertype (6: 79) public inner class X(bar: String? = (this@KOuter : Outer).A().bar): Outer.A() {
-Target type of 'is' operation (34: 30) return if (this is Outer.A) this as Outer.A else null
-Target type of 'is' operation (38: 30) return if (this is Outer.A) this as Outer.A else null
-Usage in cast target type (34: 47) return if (this is Outer.A) this as Outer.A else null
-Usage in cast target type (38: 47) return if (this is Outer.A) this as Outer.A else null
-Usage in extends/implements clause (6: 21) class Y extends A {
+[kotlinInnerClassAllUsages.1.kt] Class/object property type (7: 25) var next: Outer.A? = (this@KOuter : Outer).A()
+[kotlinInnerClassAllUsages.1.kt] Function return types (19: 30) fun getNext(): Outer.A? {
+[kotlinInnerClassAllUsages.1.kt] Function return types (33: 22) fun Any.toA(): Outer.A? {
+[kotlinInnerClassAllUsages.1.kt] Function return types (37: 27) fun Any.asServer(): Outer.A? {
+[kotlinInnerClassAllUsages.1.kt] Local variable declaration (15: 27) val aa: Outer.A = a
+[kotlinInnerClassAllUsages.1.kt] New instance creation (11: 35) (this@KOuter : Outer).A().bar = ""
+[kotlinInnerClassAllUsages.1.kt] New instance creation (29: 39) fun KOuter.X.bar(a: Outer.A = Outer().A()) {
+[kotlinInnerClassAllUsages.1.kt] New instance creation (6: 63) public inner class X(bar: String? = (this@KOuter : Outer).A().bar): Outer.A() {
+[kotlinInnerClassAllUsages.1.kt] New instance creation (7: 52) var next: Outer.A? = (this@KOuter : Outer).A()
+[kotlinInnerClassAllUsages.1.kt] New instance creation (8: 52) val myBar: String? = (this@KOuter : Outer).A().bar
+[kotlinInnerClassAllUsages.1.kt] Parameter type (14: 26) fun foo(a: Outer.A) {
+[kotlinInnerClassAllUsages.1.kt] Parameter type (29: 27) fun KOuter.X.bar(a: Outer.A = Outer().A()) {
+[kotlinInnerClassAllUsages.1.kt] Super type qualifier (24: 25) super.foo()
+[kotlinInnerClassAllUsages.1.kt] Supertype (6: 79) public inner class X(bar: String? = (this@KOuter : Outer).A().bar): Outer.A() {
+[kotlinInnerClassAllUsages.1.kt] Target type of 'is' operation (34: 30) return if (this is Outer.A) this as Outer.A else null
+[kotlinInnerClassAllUsages.1.kt] Target type of 'is' operation (38: 30) return if (this is Outer.A) this as Outer.A else null
+[kotlinInnerClassAllUsages.1.kt] Usage in cast target type (34: 47) return if (this is Outer.A) this as Outer.A else null
+[kotlinInnerClassAllUsages.1.kt] Usage in cast target type (38: 47) return if (this is Outer.A) this as Outer.A else null
+[kotlinInnerClassAllUsages.2.java] Field declaration (10: 5) A next = new A();
+[kotlinInnerClassAllUsages.2.java] New instance creation (10: 18) A next = new A();
+[kotlinInnerClassAllUsages.2.java] Usage in extends/implements clause (6: 21) class Y extends A {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinNestedClassAllUsages.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinNestedClassAllUsages.results.txt
index 06ba3d62753..a63fd0c00da 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinNestedClassAllUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinNestedClassAllUsages.results.txt
@@ -1,21 +1,21 @@
-Class/object property type (6: 21) var next: Outer.A? = Outer.A()
-Companion object (10: 15) Outer.A.bar = ""
-Companion object (11: 15) Outer.A.foo()
-Companion object (5: 37) public class X(bar: String? = Outer.A.bar): Outer.A() {
-Companion object (7: 32) val myBar: String? = Outer.A.bar
-Field declaration (6: 11) Outer.A next = new Outer.A();
-Function return types (19: 26) fun getNext(): Outer.A? {
-Function return types (40: 22) fun Any.toA(): Outer.A? {
-Local variable declaration (15: 23) val aa: Outer.A = a
-New instance creation (36: 30) fun X.bar(a: Outer.A = Outer.A()) {
-New instance creation (6: 30) Outer.A next = new Outer.A();
-New instance creation (6: 32) var next: Outer.A? = Outer.A()
-Parameter type (14: 22) fun foo(a: Outer.A) {
-Parameter type (36: 20) fun X.bar(a: Outer.A = Outer.A()) {
-Super type qualifier (24: 21) super.foo()
-Supertype (27: 29) companion object: Outer.A() {
-Supertype (32: 17) object O: Outer.A() {
-Supertype (5: 51) public class X(bar: String? = Outer.A.bar): Outer.A() {
-Target type of 'is' operation (41: 30) return if (this is Outer.A) this as Outer.A else null
-Usage in cast target type (41: 47) return if (this is Outer.A) this as Outer.A else null
-Usage in extends/implements clause (5: 30) public class X extends Outer.A {
+[kotlinNestedClassAllUsages.1.kt] Class/object property type (6: 21) var next: Outer.A? = Outer.A()
+[kotlinNestedClassAllUsages.1.kt] Companion object (10: 15) Outer.A.bar = ""
+[kotlinNestedClassAllUsages.1.kt] Companion object (11: 15) Outer.A.foo()
+[kotlinNestedClassAllUsages.1.kt] Companion object (5: 37) public class X(bar: String? = Outer.A.bar): Outer.A() {
+[kotlinNestedClassAllUsages.1.kt] Companion object (7: 32) val myBar: String? = Outer.A.bar
+[kotlinNestedClassAllUsages.1.kt] Function return types (19: 26) fun getNext(): Outer.A? {
+[kotlinNestedClassAllUsages.1.kt] Function return types (40: 22) fun Any.toA(): Outer.A? {
+[kotlinNestedClassAllUsages.1.kt] Local variable declaration (15: 23) val aa: Outer.A = a
+[kotlinNestedClassAllUsages.1.kt] New instance creation (36: 30) fun X.bar(a: Outer.A = Outer.A()) {
+[kotlinNestedClassAllUsages.1.kt] New instance creation (6: 32) var next: Outer.A? = Outer.A()
+[kotlinNestedClassAllUsages.1.kt] Parameter type (14: 22) fun foo(a: Outer.A) {
+[kotlinNestedClassAllUsages.1.kt] Parameter type (36: 20) fun X.bar(a: Outer.A = Outer.A()) {
+[kotlinNestedClassAllUsages.1.kt] Super type qualifier (24: 21) super.foo()
+[kotlinNestedClassAllUsages.1.kt] Supertype (27: 29) companion object: Outer.A() {
+[kotlinNestedClassAllUsages.1.kt] Supertype (32: 17) object O: Outer.A() {
+[kotlinNestedClassAllUsages.1.kt] Supertype (5: 51) public class X(bar: String? = Outer.A.bar): Outer.A() {
+[kotlinNestedClassAllUsages.1.kt] Target type of 'is' operation (41: 30) return if (this is Outer.A) this as Outer.A else null
+[kotlinNestedClassAllUsages.1.kt] Usage in cast target type (41: 47) return if (this is Outer.A) this as Outer.A else null
+[kotlinNestedClassAllUsages.2.java] Field declaration (6: 11) Outer.A next = new Outer.A();
+[kotlinNestedClassAllUsages.2.java] New instance creation (6: 30) Outer.A next = new Outer.A();
+[kotlinNestedClassAllUsages.2.java] Usage in extends/implements clause (5: 30) public class X extends Outer.A {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedAnonymousObjects.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedAnonymousObjects.results.txt
index e4ece4bd5cd..7da983667a5 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedAnonymousObjects.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedAnonymousObjects.results.txt
@@ -1,4 +1,4 @@
-Unclassified usage (12: 17) val x = object : X {
-Unclassified usage (7: 12) open class A: X {
-Unclassified usage (9: 17) doSomething(object : A() {}, object: X {})
-Unclassified usage (9: 34) doSomething(object : A() {}, object: X {})
+[kotlinTraitDerivedAnonymousObjects.0.kt] Unclassified usage (7: 12) open class A: X {
+[kotlinTraitDerivedAnonymousObjects.1.kt] Unclassified usage (12: 17) val x = object : X {
+[kotlinTraitDerivedAnonymousObjects.1.kt] Unclassified usage (9: 17) doSomething(object : A() {}, object: X {})
+[kotlinTraitDerivedAnonymousObjects.1.kt] Unclassified usage (9: 34) doSomething(object : A() {}, object: X {})
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedClasses.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedClasses.results.txt
index 3a3c35feced..b7acb8865a6 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedClasses.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedClasses.results.txt
@@ -1,3 +1,3 @@
-Unclassified usage (3: 12) open class B: A() {
-Unclassified usage (7: 12) open class A: X {
-Unclassified usage (7: 12) open class C: Y {
\ No newline at end of file
+[kotlinTraitDerivedClasses.0.kt] Unclassified usage (7: 12) open class A: X {
+[kotlinTraitDerivedClasses.1.kt] Unclassified usage (3: 12) open class B: A() {
+[kotlinTraitDerivedClasses.1.kt] Unclassified usage (7: 12) open class C: Y {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerClasses.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerClasses.results.txt
index d43e4c8f4e3..4a08b2441a0 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerClasses.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerClasses.results.txt
@@ -1,3 +1,3 @@
-Unclassified usage (4: 16) open class B: A() {
-Unclassified usage (7: 12) open class A: X {
-Unclassified usage (8: 16) open class C: Y {
+[kotlinTraitDerivedInnerClasses.0.kt] Unclassified usage (7: 12) open class A: X {
+[kotlinTraitDerivedInnerClasses.1.kt] Unclassified usage (4: 16) open class B: A() {
+[kotlinTraitDerivedInnerClasses.1.kt] Unclassified usage (8: 16) open class C: Y {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerObjects.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerObjects.results.txt
index 36bd42d4c01..60a804ff68b 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerObjects.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedInnerObjects.results.txt
@@ -1,3 +1,3 @@
-Unclassified usage (4: 12) object O1: A() {
-Unclassified usage (7: 12) open class A: X {
-Unclassified usage (9: 16) object O2: X {
+[kotlinTraitDerivedInnerObjects.0.kt] Unclassified usage (7: 12) open class A: X {
+[kotlinTraitDerivedInnerObjects.1.kt] Unclassified usage (4: 12) object O1: A() {
+[kotlinTraitDerivedInnerObjects.1.kt] Unclassified usage (9: 16) object O2: X {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalClasses.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalClasses.results.txt
index 66d7c71e7be..f3ece4e3dd6 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalClasses.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalClasses.results.txt
@@ -1,3 +1,3 @@
-Unclassified usage (5: 16) open class B: A() {
-Unclassified usage (7: 12) open class A: X {
-Unclassified usage (9: 16) open class C: Y {
+[kotlinTraitDerivedLocalClasses.0.kt] Unclassified usage (7: 12) open class A: X {
+[kotlinTraitDerivedLocalClasses.1.kt] Unclassified usage (5: 16) open class B: A() {
+[kotlinTraitDerivedLocalClasses.1.kt] Unclassified usage (9: 16) open class C: Y {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalObjects.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalObjects.results.txt
index 7aaafca9f20..0b762856c56 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalObjects.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedLocalObjects.results.txt
@@ -1,3 +1,3 @@
-Unclassified usage (10: 16) object O2: X {
-Unclassified usage (5: 12) object O1: A() {
-Unclassified usage (7: 12) open class A: X {
+[kotlinTraitDerivedLocalObjects.0.kt] Unclassified usage (7: 12) open class A: X {
+[kotlinTraitDerivedLocalObjects.1.kt] Unclassified usage (10: 16) object O2: X {
+[kotlinTraitDerivedLocalObjects.1.kt] Unclassified usage (5: 12) object O1: A() {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedObjects.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedObjects.results.txt
index 0b7684f9914..0743125f3b3 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedObjects.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedObjects.results.txt
@@ -1,3 +1,3 @@
-Unclassified usage (3: 8) object O1: A() {
-Unclassified usage (7: 12) open class A: X {
-Unclassified usage (7: 8) object O2: X {
+[kotlinTraitDerivedObjects.0.kt] Unclassified usage (7: 12) open class A: X {
+[kotlinTraitDerivedObjects.1.kt] Unclassified usage (3: 8) object O1: A() {
+[kotlinTraitDerivedObjects.1.kt] Unclassified usage (7: 8) object O2: X {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedTraits.results.txt b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedTraits.results.txt
index 25bed06446b..2885a17069c 100644
--- a/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedTraits.results.txt
+++ b/idea/testData/findUsages/kotlin/findClassUsages/kotlinTraitDerivedTraits.results.txt
@@ -1,3 +1,3 @@
-Unclassified usage (11: 11) interface Y: X {
-Unclassified usage (11: 11) interface Z: A {
-Unclassified usage (15: 11) interface U: Z {
\ No newline at end of file
+[kotlinTraitDerivedTraits.0.kt] Unclassified usage (11: 11) interface Y: X {
+[kotlinTraitDerivedTraits.1.kt] Unclassified usage (11: 11) interface Z: A {
+[kotlinTraitDerivedTraits.1.kt] Unclassified usage (15: 11) interface U: Z {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findFunctionUsages/javaAndKotlinOverrides.results.txt b/idea/testData/findUsages/kotlin/findFunctionUsages/javaAndKotlinOverrides.results.txt
index 7892b208db1..70e06120f1f 100644
--- a/idea/testData/findUsages/kotlin/findFunctionUsages/javaAndKotlinOverrides.results.txt
+++ b/idea/testData/findUsages/kotlin/findFunctionUsages/javaAndKotlinOverrides.results.txt
@@ -1,2 +1,2 @@
-Unclassified usage (29: 18) override fun foo(t: String) {
-Unclassified usage (3: 17) public void foo(String s) {
\ No newline at end of file
+[javaAndKotlinOverrides.0.kt] Unclassified usage (29: 18) override fun foo(t: String) {
+[javaAndKotlinOverrides.1.java] Unclassified usage (3: 17) public void foo(String s) {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinOverloadAndExtensionUsages.results.txt b/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinOverloadAndExtensionUsages.results.txt
index 1f1945ce682..79178a3c3df 100644
--- a/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinOverloadAndExtensionUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinOverloadAndExtensionUsages.results.txt
@@ -1,7 +1,7 @@
-Function call (11: 11) a.foo(0, "")
-Function call (11: 7) x.foo(1, 2)
-Function call (25: 5) foo(t)
-Function call (30: 7) a.foo(1, "")
-Function call (35: 9) foo(t)
-Function call (39: 5) foo(s)
-Function call (3: 18) super.foo(t)
\ No newline at end of file
+[kotlinOverloadAndExtensionUsages.0.kt] Function call (11: 7) x.foo(1, 2)
+[kotlinOverloadAndExtensionUsages.0.kt] Function call (25: 5) foo(t)
+[kotlinOverloadAndExtensionUsages.0.kt] Function call (30: 7) a.foo(1, "")
+[kotlinOverloadAndExtensionUsages.0.kt] Function call (35: 9) foo(t)
+[kotlinOverloadAndExtensionUsages.0.kt] Function call (39: 5) foo(s)
+[kotlinOverloadAndExtensionUsages.1.kt] Function call (11: 11) a.foo(0, "")
+[kotlinOverloadAndExtensionUsages.1.kt] Function call (3: 18) super.foo(t)
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTopLevelMethodUsages.results.txt b/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTopLevelMethodUsages.results.txt
index da2a5942429..3362fe62a3a 100644
--- a/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTopLevelMethodUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTopLevelMethodUsages.results.txt
@@ -1,5 +1,5 @@
-Callable reference (6: 23) val methodRef = ::processRequest()
-Function call (10: 9) processRequest()
-Unclassified usage (6: 30) String s = ServerPackage.processRequest();
-Unclassified usage (9: 30) return ServerPackage.processRequest();
-Usage in import (3: 15) import server.processRequest
+[kotlinTopLevelMethodUsages.1.kt] Callable reference (6: 23) val methodRef = ::processRequest()
+[kotlinTopLevelMethodUsages.1.kt] Function call (10: 9) processRequest()
+[kotlinTopLevelMethodUsages.1.kt] Usage in import (3: 15) import server.processRequest
+[kotlinTopLevelMethodUsages.2.java] Unclassified usage (6: 30) String s = ServerPackage.processRequest();
+[kotlinTopLevelMethodUsages.2.java] Unclassified usage (9: 30) return ServerPackage.processRequest();
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTraitImplThroughDelegate.results.txt b/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTraitImplThroughDelegate.results.txt
index 4798668d12c..5f8e4c1fecc 100644
--- a/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTraitImplThroughDelegate.results.txt
+++ b/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTraitImplThroughDelegate.results.txt
@@ -1,2 +1,2 @@
-Function call (11: 53) fun test(twdwi: TraitWithDelegatedWithImpl) = twdwi.foo()
-Unclassified usage (7: 14) some.foo();
\ No newline at end of file
+[kotlinTraitImplThroughDelegate.0.kt] Function call (11: 53) fun test(twdwi: TraitWithDelegatedWithImpl) = twdwi.foo()
+[kotlinTraitImplThroughDelegate.1.java] Unclassified usage (7: 14) some.foo();
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTraitNoImplThroughDelegate.results.txt b/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTraitNoImplThroughDelegate.results.txt
index 6b6c5c37f8c..9ae5d59c603 100644
--- a/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTraitNoImplThroughDelegate.results.txt
+++ b/idea/testData/findUsages/kotlin/findFunctionUsages/kotlinTraitNoImplThroughDelegate.results.txt
@@ -1,2 +1,2 @@
-Function call (11: 51) fun test(twdni: TraitWithDelegatedNoImpl) = twdni.foo()
-Unclassified usage (7: 14) some.foo();
\ No newline at end of file
+[kotlinTraitNoImplThroughDelegate.0.kt] Function call (11: 51) fun test(twdni: TraitWithDelegatedNoImpl) = twdni.foo()
+[kotlinTraitNoImplThroughDelegate.1.java] Unclassified usage (7: 14) some.foo();
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides.results.txt
index 2f71ad44321..f5ce8878615 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides.results.txt
@@ -1,5 +1,5 @@
-Unclassified usage (12: 17) public void setFoo(String s) {
-Unclassified usage (13: 9) set(value: String) {
-Unclassified usage (25: 18) override var foo: String = ""
-Unclassified usage (7: 19) public String getFoo() {
-Unclassified usage (9: 9) get() {
\ No newline at end of file
+[javaAndKotlinOverrides.0.kt] Unclassified usage (13: 9) set(value: String) {
+[javaAndKotlinOverrides.0.kt] Unclassified usage (25: 18) override var foo: String = ""
+[javaAndKotlinOverrides.0.kt] Unclassified usage (9: 9) get() {
+[javaAndKotlinOverrides.1.java] Unclassified usage (12: 17) public void setFoo(String s) {
+[javaAndKotlinOverrides.1.java] Unclassified usage (7: 19) public String getFoo() {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides2.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides2.results.txt
index 409c56f7f6e..9f2fb628229 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides2.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/javaAndKotlinOverrides2.results.txt
@@ -1,6 +1,6 @@
-Unclassified usage (11: 9) set(value: String) {
-Unclassified usage (12: 17) public void setFoo(String s) {
-Unclassified usage (23: 18) override var foo: String = ""
-Unclassified usage (26: 30) open class E(override var foo: T): A(foo)
-Unclassified usage (7: 19) public String getFoo() {
-Unclassified usage (7: 9) get() {
\ No newline at end of file
+[javaAndKotlinOverrides2.0.kt] Unclassified usage (11: 9) set(value: String) {
+[javaAndKotlinOverrides2.0.kt] Unclassified usage (23: 18) override var foo: String = ""
+[javaAndKotlinOverrides2.0.kt] Unclassified usage (26: 30) open class E(override var foo: T): A(foo)
+[javaAndKotlinOverrides2.0.kt] Unclassified usage (7: 9) get() {
+[javaAndKotlinOverrides2.1.java] Unclassified usage (12: 17) public void setFoo(String s) {
+[javaAndKotlinOverrides2.1.java] Unclassified usage (7: 19) public String getFoo() {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinClassObjectPropertyUsage.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinClassObjectPropertyUsage.results.txt
index 50cfc6761d7..04071ca0fad 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinClassObjectPropertyUsage.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinClassObjectPropertyUsage.results.txt
@@ -1,2 +1,2 @@
-Unclassified usage (7: 22) int i = Some.XX;
-Value read (11: 14) val a = Some.XX
\ No newline at end of file
+[kotlinClassObjectPropertyUsage.0.kt] Value read (11: 14) val a = Some.XX
+[kotlinClassObjectPropertyUsage.1.java] Unclassified usage (7: 22) int i = Some.XX;
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages.results.txt
index 584a82402bc..a7a80e91eb6 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages.results.txt
@@ -1,3 +1,3 @@
-Value read (11: 30) println("b.foo = ${b.foo}")
-Value read (13: 29) return super.foo
-Value read (7: 30) println("a.foo = ${a.foo}")
+[kotlinPropertyReadUsages.0.kt] Value read (13: 29) return super.foo
+[kotlinPropertyReadUsages.1.kt] Value read (11: 30) println("b.foo = ${b.foo}")
+[kotlinPropertyReadUsages.1.kt] Value read (7: 30) println("a.foo = ${a.foo}")
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages2.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages2.results.txt
index bf08a875580..90bac11db80 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages2.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyReadUsages2.results.txt
@@ -1,3 +1,3 @@
-Value read (11: 29) return super.foo
-Value read (11: 30) println("b.foo = ${b.foo}")
-Value read (7: 30) println("a.foo = ${a.foo}")
\ No newline at end of file
+[kotlinPropertyReadUsages2.0.kt] Value read (11: 29) return super.foo
+[kotlinPropertyReadUsages2.1.kt] Value read (11: 30) println("b.foo = ${b.foo}")
+[kotlinPropertyReadUsages2.1.kt] Value read (7: 30) println("a.foo = ${a.foo}")
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages.results.txt
index 1811bb590bf..00f20a951ef 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages.results.txt
@@ -1,6 +1,6 @@
-Value read (11: 30) println("b.foo = ${b.foo}")
-Value read (13: 29) return super.foo
-Value read (7: 30) println("a.foo = ${a.foo}")
-Value write (10: 11) b.foo = "b"
-Value write (17: 22) super.foo = value
-Value write (6: 11) a.foo = "a"
+[kotlinPropertyUsages.0.kt] Value read (13: 29) return super.foo
+[kotlinPropertyUsages.0.kt] Value write (17: 22) super.foo = value
+[kotlinPropertyUsages.1.kt] Value read (11: 30) println("b.foo = ${b.foo}")
+[kotlinPropertyUsages.1.kt] Value read (7: 30) println("a.foo = ${a.foo}")
+[kotlinPropertyUsages.1.kt] Value write (10: 11) b.foo = "b"
+[kotlinPropertyUsages.1.kt] Value write (6: 11) a.foo = "a"
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages2.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages2.results.txt
index 88da8b909f0..9ffb6e1b1b6 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages2.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyUsages2.results.txt
@@ -1,6 +1,6 @@
-Value read (11: 29) return super.foo
-Value read (11: 30) println("b.foo = ${b.foo}")
-Value read (7: 30) println("a.foo = ${a.foo}")
-Value write (10: 11) b.foo = "b"
-Value write (15: 22) super.foo = value
-Value write (6: 11) a.foo = "a"
+[kotlinPropertyUsages2.0.kt] Value read (11: 29) return super.foo
+[kotlinPropertyUsages2.0.kt] Value write (15: 22) super.foo = value
+[kotlinPropertyUsages2.1.kt] Value read (11: 30) println("b.foo = ${b.foo}")
+[kotlinPropertyUsages2.1.kt] Value read (7: 30) println("a.foo = ${a.foo}")
+[kotlinPropertyUsages2.1.kt] Value write (10: 11) b.foo = "b"
+[kotlinPropertyUsages2.1.kt] Value write (6: 11) a.foo = "a"
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages.results.txt
index bad39440d1c..ef7cd7d3cce 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages.results.txt
@@ -1,3 +1,3 @@
-Value write (10: 11) b.foo = "b"
-Value write (17: 22) super.foo = value
-Value write (6: 11) a.foo = "a"
+[kotlinPropertyWriteUsages.0.kt] Value write (17: 22) super.foo = value
+[kotlinPropertyWriteUsages.1.kt] Value write (10: 11) b.foo = "b"
+[kotlinPropertyWriteUsages.1.kt] Value write (6: 11) a.foo = "a"
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages2.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages2.results.txt
index 4f4b1927587..d9da3a3096e 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages2.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinPropertyWriteUsages2.results.txt
@@ -1,3 +1,3 @@
-Value write (10: 11) b.foo = "b"
-Value write (15: 22) super.foo = value
-Value write (6: 11) a.foo = "a"
+[kotlinPropertyWriteUsages2.0.kt] Value write (15: 22) super.foo = value
+[kotlinPropertyWriteUsages2.1.kt] Value write (10: 11) b.foo = "b"
+[kotlinPropertyWriteUsages2.1.kt] Value write (6: 11) a.foo = "a"
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinTopLevelPropertyUsages.results.txt b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinTopLevelPropertyUsages.results.txt
index 773c3c4ad8e..e5772d5fb3e 100644
--- a/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinTopLevelPropertyUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findPropertyUsages/kotlinTopLevelPropertyUsages.results.txt
@@ -1,6 +1,6 @@
-Receiver (8: 35) println("length: ${server.foo.length()}")
-Unclassified usage (7: 53) System.out.println("foo = " + ServerPackage.getFoo());
-Unclassified usage (8: 55) System.out.println("length: " + ServerPackage.getFoo().length());
-Unclassified usage (9: 23) ServerPackage.setFoo("");
-Usage in import (3: 15) import server.foo
-Value read (7: 33) println("foo = ${server.foo}")
+[kotlinTopLevelPropertyUsages.1.kt] Receiver (8: 35) println("length: ${server.foo.length()}")
+[kotlinTopLevelPropertyUsages.1.kt] Usage in import (3: 15) import server.foo
+[kotlinTopLevelPropertyUsages.1.kt] Value read (7: 33) println("foo = ${server.foo}")
+[kotlinTopLevelPropertyUsages.2.java] Unclassified usage (7: 53) System.out.println("foo = " + ServerPackage.getFoo());
+[kotlinTopLevelPropertyUsages.2.java] Unclassified usage (8: 55) System.out.println("length: " + ServerPackage.getFoo().length());
+[kotlinTopLevelPropertyUsages.2.java] Unclassified usage (9: 23) ServerPackage.setFoo("");
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findSecondaryConstructorUsages/defaultSecondaryConstructor.results.txt b/idea/testData/findUsages/kotlin/findSecondaryConstructorUsages/defaultSecondaryConstructor.results.txt
index b5fa860aabf..b9aae4fbfc9 100644
--- a/idea/testData/findUsages/kotlin/findSecondaryConstructorUsages/defaultSecondaryConstructor.results.txt
+++ b/idea/testData/findUsages/kotlin/findSecondaryConstructorUsages/defaultSecondaryConstructor.results.txt
@@ -1,8 +1,8 @@
-New instance creation (11: 13) new B();
-New instance creation (28: 5) B()
-Supertype (23: 11) class C : B() {
-Unclassified usage (14: 27) constructor(a: Int) : super() {
-Unclassified usage (18: 19) constructor() {
-Unclassified usage (3: 9) super();
-Unclassified usage (6: 12) public J() {
-Unclassified usage (8: 26) constructor(a: Int): this() {
\ No newline at end of file
+[defaultSecondaryConstructor.0.kt] New instance creation (28: 5) B()
+[defaultSecondaryConstructor.0.kt] Supertype (23: 11) class C : B() {
+[defaultSecondaryConstructor.0.kt] Unclassified usage (14: 27) constructor(a: Int) : super() {
+[defaultSecondaryConstructor.0.kt] Unclassified usage (18: 19) constructor() {
+[defaultSecondaryConstructor.0.kt] Unclassified usage (8: 26) constructor(a: Int): this() {
+[defaultSecondaryConstructor.1.java] New instance creation (11: 13) new B();
+[defaultSecondaryConstructor.1.java] Unclassified usage (3: 9) super();
+[defaultSecondaryConstructor.1.java] Unclassified usage (6: 12) public J() {
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findSecondaryConstructorUsages/secondaryConstructor.results.txt b/idea/testData/findUsages/kotlin/findSecondaryConstructorUsages/secondaryConstructor.results.txt
index 7c41d2ddda2..ee02b8272ac 100644
--- a/idea/testData/findUsages/kotlin/findSecondaryConstructorUsages/secondaryConstructor.results.txt
+++ b/idea/testData/findUsages/kotlin/findSecondaryConstructorUsages/secondaryConstructor.results.txt
@@ -1,6 +1,6 @@
-New instance creation (24: 5) B("")
-New instance creation (7: 13) new B("");
-Supertype (19: 10) class C: B("") {
-Unclassified usage (14: 27) constructor(a: Int) : super("") {
-Unclassified usage (3: 9) super("");
-Unclassified usage (4: 20) constructor(): this("") {
\ No newline at end of file
+[secondaryConstructor.0.kt] New instance creation (24: 5) B("")
+[secondaryConstructor.0.kt] Supertype (19: 10) class C: B("") {
+[secondaryConstructor.0.kt] Unclassified usage (14: 27) constructor(a: Int) : super("") {
+[secondaryConstructor.0.kt] Unclassified usage (4: 20) constructor(): this("") {
+[secondaryConstructor.1.java] New instance creation (7: 13) new B("");
+[secondaryConstructor.1.java] Unclassified usage (3: 9) super("");
\ No newline at end of file
diff --git a/idea/testData/findUsages/kotlin/findWithStructuralGrouping/kotlinPropertyUsages.results.txt b/idea/testData/findUsages/kotlin/findWithStructuralGrouping/kotlinPropertyUsages.results.txt
index b5600581b1e..0df41fce6c9 100644
--- a/idea/testData/findUsages/kotlin/findWithStructuralGrouping/kotlinPropertyUsages.results.txt
+++ b/idea/testData/findUsages/kotlin/findWithStructuralGrouping/kotlinPropertyUsages.results.txt
@@ -1,6 +1,6 @@
-Value read (B) (14: 29) return super.foo
-Value read (Client) (11: 30) println("b.foo = ${b.foo}")
-Value read (Client) (7: 30) println("a.foo = ${a.foo}")
-Value write (B) (18: 22) super.foo = value
-Value write (Client) (10: 11) b.foo = "b"
-Value write (Client) (6: 11) a.foo = "a"
+[kotlinPropertyUsages.0.kt] Value read (B) (14: 29) return super.foo
+[kotlinPropertyUsages.0.kt] Value write (B) (18: 22) super.foo = value
+[kotlinPropertyUsages.1.kt] Value read (Client) (11: 30) println("b.foo = ${b.foo}")
+[kotlinPropertyUsages.1.kt] Value read (Client) (7: 30) println("a.foo = ${a.foo}")
+[kotlinPropertyUsages.1.kt] Value write (Client) (10: 11) b.foo = "b"
+[kotlinPropertyUsages.1.kt] Value write (Client) (6: 11) a.foo = "a"
\ No newline at end of file
diff --git a/idea/tests/org/jetbrains/kotlin/findUsages/AbstractJetFindUsagesTest.java b/idea/tests/org/jetbrains/kotlin/findUsages/AbstractJetFindUsagesTest.java
index 0d4b98673a5..2d632fe45b6 100644
--- a/idea/tests/org/jetbrains/kotlin/findUsages/AbstractJetFindUsagesTest.java
+++ b/idea/tests/org/jetbrains/kotlin/findUsages/AbstractJetFindUsagesTest.java
@@ -357,6 +357,19 @@ public abstract class AbstractJetFindUsagesTest extends JetLightCodeInsightFixtu
Collection filteredUsages = getUsageAdapters(filteringRules, usageInfos);
+ List usageFiles = KotlinPackage.distinct(
+ KotlinPackage.map(
+ filteredUsages,
+ new Function1() {
+ @Override
+ public String invoke(UsageInfo2UsageAdapter adapter) {
+ return adapter.getFile().getName();
+ }
+ }
+ )
+ );
+ final boolean appendFileName = usageFiles.size() > 1;
+
Function convertToString = new Function() {
@Override
public String apply(@Nullable final UsageInfo2UsageAdapter usageAdapter) {
@@ -381,7 +394,8 @@ public abstract class AbstractJetFindUsagesTest extends JetLightCodeInsightFixtu
UsageType usageType = getUsageType(usageAdapter.getElement());
String usageTypeAsString = usageType == null ? "null" : usageType.toString(USAGE_VIEW_PRESENTATION);
- return usageTypeAsString + " " +
+ return (appendFileName ? "[" + usageAdapter.getFile().getName() + "] " : "") +
+ usageTypeAsString + " " +
groupAsString +
Joiner.on("").join(Arrays.asList(usageAdapter.getPresentation().getText()));
}