private static boolean clearReadOnly(Project project, File dstFile) {
    VirtualFile vfile = VfsUtil.findFileByIoFile(dstFile, true);
    return vfile == null || !ReadonlyStatusHandler.getInstance(project).ensureFilesWritable(Collections.singleton(vfile)).hasReadonlyFiles();
  }
private static boolean clearReadOnly(Project project, File dstFile)