Promise<Object> (@NotNull PlaybackContext context) { String path = extractCommandArgument(PREFIX).split(" ")[0]; var settings = MavenProjectsManager.getInstance(context.getProject()).getGeneralSettings(); var promise = new AsyncPromise<>(); settings.addListener(() -> { promise.setResult(null); }); settings.setUserSettingsFile(path); return promise; }