void () { // create .idea StoreUtil.saveSettings(getProject()); VirtualFile shelf = createChildDirectory(getProject().getProjectFile().getParent(), "shelf"); VcsIgnoreManager vcsIgnoreManager = VcsIgnoreManager.getInstance(myProject); myModuleRootListener.reset(); VirtualFile xxx = createChildData(shelf, "shelf1.dat"); assertTrue(vcsIgnoreManager.isPotentiallyIgnoredFile(xxx)); assertEquals(myModuleRootListener.modificationCount, ProjectRootManager.getInstance(myProject).getModificationCount()); VirtualFile newShelf = createChildDirectory(getOrCreateProjectBaseDir().getParent(), "newShelf"); VcsConfiguration vcs = VcsConfiguration.getInstance(myProject); vcs.USE_CUSTOM_SHELF_PATH = true; vcs.CUSTOM_SHELF_PATH = newShelf.getPath(); myModuleRootListener.reset(); VirtualFile xxx2 = createChildData(newShelf, "shelf1.dat"); assertTrue(vcsIgnoreManager.isPotentiallyIgnoredFile(xxx2)); }