@TestOnly
  public static void registerResourceTemporarily(final String url, final String location, Disposable disposable) {
    Application app = ApplicationManager.getApplication();
    app.runWriteAction(() -> getInstance().addResource(url, location));
    Disposer.register(disposable, () -> app.runWriteAction(() -> getInstance().removeResource(url)));
  }
@TestOnly
  public static void registerResourceTemporarily(final String url, final String location, Disposable disposable)