void (@NotNull ActionHint actionHint, @NotNull String testFullPath, @NotNull String testName) { final int offset = getEditor().getCaretModel().getPrimaryCaret().getOffset(); final PsiElement snippet = PsiUtilCore.getElementAtOffset(getFile(), offset); final PsiClass injectedClass = getInjectedClass(snippet); EqualsToFile.assertEqualsToFile( "Injected code", new File(JavaTestUtil.getJavaTestDataPath(), getBasePath() + "/after" + testName), injectedClass.getText() ); }