void (String url) { IntentionAction intention = myFixture.getAvailableIntention(XmlBundle.message("xml.intention.fetch.name")); assertNotNull(intention); try { intention.invoke(getProject(), myFixture.getEditor(), myFixture.getFile()); } catch (Throwable e) { Throwable cause = ExceptionUtil.getRootCause(e); if (cause.getMessage().startsWith(XmlBundle.message("xml.intention.fetch.error.fetching.title")) || cause.getMessage().startsWith("Could not fetch")) { ExternalResourcesChecker.reportUnavailability(url, cause); } throw new RuntimeException(e); } }