Object (VirtualFile file, boolean recursive) { VirtualFileSystem fs = file.getFileSystem(); if (fs instanceof LocalFileSystem) { return LocalFileSystem.getInstance().addRootToWatch(file.getPath(), recursive); } return null; }