void () { IssueNavigationConfiguration configuration = IssueNavigationConfiguration.getInstance(getProject()); List<IssueNavigationLink> oldLinks = configuration.getLinks(); try { configuration.setLinks(List.of(new IssueNavigationLink("IDEA-\\d+", "https://youtrack.jetbrains.com/issue/$0"))); configureByFile(getFilePath()); doTestConfiguredFile(true, false, null); } finally { configuration.setLinks(oldLinks); } }