private boolean isAlreadyAdded(VirtualFile file) {
    final VirtualFile[] contentRoots = getModel().getContentRoots();
    return ArrayUtil.contains(file, contentRoots);
  }
private boolean isAlreadyAdded(VirtualFile file)