GlobalSearchScope (GlobalSearchScope scope0, GlobalSearchScope scope1, Project project) { GlobalSearchScope[] scopes0 = ((UnionScope)scope0).myScopes; if (ArrayUtil.contains(scope1, scopes0)) { return scope0; } else { return new UnionScope(project, ArrayUtil.append(scopes0, scope1)); } }