GlobalSearchScope (@NotNull GlobalSearchScope scope) { if (scope instanceof UnionScope) { GlobalSearchScope[] newScopes = ArrayUtil.mergeArrays(myScopes, ((UnionScope)scope).myScopes); return create(newScopes); } return super.uniteWith(scope); }