void () { GlobalSearchScope scope = GlobalSearchScope.EMPTY_SCOPE.uniteWith(GlobalSearchScope.EMPTY_SCOPE); assertEquals(GlobalSearchScope.EMPTY_SCOPE, scope); GlobalSearchScope scope2 = GlobalSearchScope.union(new GlobalSearchScope[]{GlobalSearchScope.EMPTY_SCOPE, GlobalSearchScope.EMPTY_SCOPE}); assertEquals(GlobalSearchScope.EMPTY_SCOPE, scope2); GlobalSearchScope p = GlobalSearchScope.projectScope(getProject()); GlobalSearchScope scope3 = GlobalSearchScope.union(new GlobalSearchScope[]{GlobalSearchScope.EMPTY_SCOPE, p, GlobalSearchScope.EMPTY_SCOPE}); assertEquals(p, scope3); GlobalSearchScope m = GlobalSearchScope.moduleScope(getModule()); GlobalSearchScope pm = m.uniteWith(p); Assert.assertNotEquals(m, pm); GlobalSearchScope scope4 = GlobalSearchScope.union(new GlobalSearchScope[]{GlobalSearchScope.EMPTY_SCOPE, p, GlobalSearchScope.EMPTY_SCOPE, pm, m}); assertEquals(pm, scope4); }