void () { String text = """ class Test { void test() { bundle.getMessage("this.is.my.key"); } }"""; myFixture.configureByText("test.java", text); int startOffset = text.indexOf('"'); int endOffset = text.indexOf(')', startOffset); String baseSignature = String.format("e#%d#%d", startOffset, endOffset); PsiElement implicitTop = myProvider.restoreBySignature(myFixture.getFile(), baseSignature, null); assertNotNull(implicitTop); PsiElement top = myProvider.restoreBySignature(myFixture.getFile(), baseSignature + "#0", null); assertSame(implicitTop, top); PsiElement bottom = myProvider.restoreBySignature(myFixture.getFile(), baseSignature + "#1", null); assertNotNull(bottom); assertNotSame(top, bottom); }