void () { doTest(new PerformAction() { @Override public void performAction(VirtualFile rootDir, VirtualFile rootAfter) { PsiFile file = myPsiManager.findFile(rootDir.findFileByRelativePath("org/withoutForms/child/abstractClass.png")); Assert.assertNotNull(file); new RenameProcessor(myProject, file, "specificClass.png", true, true).run(); } }); }