private static @NotNull Map<String, String> computeGlobalPathMacrosForStandaloneCode() {
    Map<String, String> result = new HashMap<>();
    String homePath = PathManager.getHomePath(false);
    if (homePath != null) {
      result.put(APPLICATION_HOME_DIR, FileUtilRt.toSystemIndependentName(homePath));
      result.put(APPLICATION_CONFIG_DIR, FileUtilRt.toSystemIndependentName(PathManager.getConfigPath()));
      result.put(APPLICATION_PLUGINS_DIR, FileUtilRt.toSystemIndependentName(PathManager.getPluginsPath()));
    }
    result.put(USER_HOME_NAME, computeUserHomePath());
    return Map.copyOf(result);
  }
private static @NotNull Map<String, String> computeGlobalPathMacrosForStandaloneCode()