void (final String optionsDir) { try { String optionsPath = getTestDataFileAbsolutePath(optionsDir); Map<String,String> pathVariables = getPathVariables(); JpsPathVariablesConfiguration configuration = JpsModelSerializationDataService.getOrCreatePathVariablesConfiguration(myModel.getGlobal()); for (Map.Entry<String, String> entry : pathVariables.entrySet()) { configuration.addPathVariable(entry.getKey(), entry.getValue()); } JpsGlobalLoader.loadGlobalSettings(myModel.getGlobal(), optionsPath); } catch (IOException e) { throw new RuntimeException(e); } }