private static void setPath(TargetEnvironmentAwareRunProfile t, String path) {
    ModuleBasedConfiguration<?, ?> configuration = (ModuleBasedConfiguration)t;
    configuration.setProjectPathOnTarget(path);

    String targetName = TargetEnvironmentConfigurations.getEffectiveTargetName(t, configuration.getProject());
    if (targetName == null) return;
    TargetEnvironmentConfiguration targetEnvironmentConfiguration =
      TargetEnvironmentsManager.getInstance(configuration.getProject()).getTargets().findByName(targetName);
    if (targetEnvironmentConfiguration != null && Comparing.strEqual(targetEnvironmentConfiguration.getProjectRootOnTarget(), path)) {
      configuration.setProjectPathOnTarget(null);
    }
  }
private static void setPath(TargetEnvironmentAwareRunProfile t, String path)