void () { BaseRefactoringProcessor.ConflictsInTestsException.withIgnoredConflicts(() -> { configureByFile("/refactoring/makeMethodStatic/before" + getTestName(false) + ".java"); PsiElement element = TargetElementUtil.findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED); assertNull(MakeStaticHandler.validateTarget((PsiTypeParameterListOwner)element)); perform(false, false); checkResultByFile("/refactoring/makeMethodStatic/after" + getTestName(false) + ".java"); }); }