I currently have a problem in the mks problem which is caused by the fact that determining which files are unversionned is an expensive operation.
I believe that this is mostly because i query Mks for all "non members" of a sandbox, including the output folders (that are usually excluded from the module configuration).
From what I understand of the ChangeProvider interface, the vcs plugin is only asked to refresh files returned by com.intellij.openapi.vcs.changes.VcsDirtyScope#getRecursivelyDirtyDirectories (and com.intellij.openapi.vcs.changes.VcsDirtyScope#getDirtyFiles) but those directories may have excluded folders as children.
The way the Mks integration works is you ask non members for a sandbox, with the possibility to exclude some folders. Is there any way that I could query the IDEA Project for a list of excluded roots ?