void (final String url, final String location) { final ExternalResourceManager manager = ExternalResourceManager.getInstance(); final String old = manager.getResourceLocation(url, (String)null); if (old != null && !old.equals(url) //strange hack: ERM returns url as location sometimes ) { return; } ExternalResourceManagerExImpl.registerResourceTemporarily(url, location, myFixture.getTestRootDisposable()); }