String () { myFixture.configureByFile(getTestName(true) + ".yml"); myFixture.performEditorAction(IdeActions.ACTION_COPY_REFERENCE); String reference; try { reference = (String)CopyPasteManager.getInstance().getContents().getTransferData(DataFlavor.stringFlavor); } catch (UnsupportedFlavorException | IOException e) { throw new RuntimeException(e); } return reference; }