private static String getPath(TargetEnvironmentAwareRunProfile t) {
    ModuleBasedConfiguration<?, ?> configuration = (ModuleBasedConfiguration)t;
    if (configuration.getProjectPathOnTarget() != null) {
      return configuration.getProjectPathOnTarget();
    }

    String targetName = TargetEnvironmentConfigurations.getEffectiveTargetName(t, configuration.getProject());
    if (targetName == null) return "";
    TargetEnvironmentConfiguration targetEnvironmentConfiguration =
      TargetEnvironmentsManager.getInstance(configuration.getProject()).getTargets().findByName(targetName);
    return targetEnvironmentConfiguration == null ? null : targetEnvironmentConfiguration.getProjectRootOnTarget();
  }
private static String getPath(TargetEnvironmentAwareRunProfile t)