void (boolean recursive) { if (myFile != null && myVcs != null) { String url = "file://" + myFile.getPath().replace(File.separatorChar, '/'); VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(url); if (file != null) { VcsDirtyScopeManager dirtyScopeManager = VcsDirtyScopeManager.getInstance(myVcs.getProject()); if (recursive && file.isDirectory()) { dirtyScopeManager.dirDirtyRecursively(file); } else { dirtyScopeManager.fileDirty(file); } } } }