public static void copyIDEALicense(final String sandboxHome) {
    File sandboxSystemPath = new File(sandboxHome, "system");
    File systemPath = new File(PathManager.getSystemPath());
    File[] runningIdeaLicenses = systemPath.listFiles(new PatternFilenameFilter(IDEA_KEY_FILE_PATTERN));
    if (runningIdeaLicenses != null) {
      for (File license : runningIdeaLicenses) {
        File devIdeaLicense = new File(sandboxSystemPath, license.getName());
        if (!devIdeaLicense.exists()) {
          try {
            FileUtil.copy(license, devIdeaLicense);
          }
          catch (IOException e) {
            LOG.error(e);
          }
        }
      }
    }
  }
public static void copyIDEALicense(final String sandboxHome)