for (final Map.Entry<MksSandboxInfo, ArrayList<VirtualFile>> entry : dispatchCommand.filesBySandbox.entrySet()) {
final MksSandboxInfo sandbox = entry.getKey();
final ArrayList<VirtualFile> files = entry.getValue();
final List<VcsException> errors = new ArrayList<VcsException>();
final CheckoutAPICommand command = new CheckoutAPICommand();
command.executeCommand(MksVcs.this, errors, files.toArray(new VirtualFile[files.size()]));
if (!errors.isEmpty()) {
//noinspection ThrowableResultOfMethodCallIgnored
Runnable runnable = new Runnable() {
public void run() {
Messages.showErrorDialog(errors.get(0).getLocalizedMessage(),