private final IgnoreNode ignoreNode = new IgnoreNode();
public static Ignore BuildIgnore(IFile virtualFile) {
Ignore ig = new Ignore(virtualFile);
// TODO: add more hard-coded ignores
ig.ignoreNode.addRule(new IgnoreRule(".idea/workspace.xml"));
ig.ignoreNode.addRule(new IgnoreRule(".idea/misc.xml"));
ig.ignoreNode.addRule(new IgnoreRule(".git"));
ig.ignoreNode.addRule(new IgnoreRule(".svn"));
ig.ignoreNode.addRule(new IgnoreRule(".hg"));
ig.recurse(ig, virtualFile.getPath());
return ig;
}