void () { Module module = createModule("module"); VirtualFile root = createChildDirectory(getOrCreateProjectBaseDir(), "contentRoot"); PsiTestUtil.addContentRoot(module, root); PsiDirectory directory = PsiManager.getInstance(myProject).findDirectory(root); MapDataContext context = new MapDataContext(); context.put(LangDataKeys.MODULE_CONTEXT, module); context.put(CommonDataKeys.PSI_ELEMENT, directory); assertNull(chooseHandler(context, RenameModuleAndDirectoryHandler.class)); }