void (@NotNull final ActionHint actionHint, @NotNull final String testFullPath, @NotNull final String testName) { final LocalQuickFix fix = new SameParameterValueInspection().getQuickFix(actionHint.getExpectedText()); assert fix != null; final int offset = getEditor().getCaretModel().getOffset(); final PsiElement psiElement = getFile().findElementAt(offset); assert psiElement != null; final ProblemDescriptor descriptor = InspectionManager.getInstance(getProject()) .createProblemDescriptor(psiElement, "", fix, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, true); try { fix.applyFix(getProject(), descriptor); if (testName.endsWith(CONFLICT_SUFFIX)) { fail("Conflict expected"); } } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { if (testName.endsWith(CONFLICT_SUFFIX)) { return; } } final String expectedFilePath = getBasePath() + "/after" + testName; checkResultByFile("In file :" + expectedFilePath, expectedFilePath, false); }