void (String expectedMemberName) { String basePath = "/refactoring/changeSignatureTarget/" + getTestName(true); @NonNls final String filePath = basePath + ".java"; configureByFile(filePath); final PsiElement member = new JavaChangeSignatureHandler().findTargetMember(getFile(), getEditor()); assertNotNull(member); assertEquals(expectedMemberName, ((PsiMember)member).getName()); }