void () { @Language("JAVA") final String text = """ @lombok.Data public class Test { private String someString; public static void main(String[] args) { Test test = new Test(); test.setSomeString<caret>("Hello")); }}"""; PsiFile file = myFixture.addFileToProject("Test.java", text); myFixture.configureFromExistingVirtualFile(file.getVirtualFile()); PsiElement[] elements = ShowImplementationsTestUtil.getImplementations(); assertNotNull(elements); assertEquals(1, elements.length); assertTrue(elements[0] instanceof PsiField); final String newText = ImplementationViewComponent.getNewText(elements[0]); assertEquals(" private String someString;", newText); }