List<MavenId> (Project project, String className) { if (MavenUtil.isMavenUnitTestModeEnabled()) { assert ourResultForTest != null; List<MavenId> res = ourResultForTest; ourResultForTest = null; return res; } MavenArtifactSearchDialog d = new MavenArtifactSearchDialog(project, className, true); if (!d.showAndGet()) { return Collections.emptyList(); } return d.getResult(); }