LocalSearchScope (@NotNull LocalSearchScope localScope2) { PsiElement[] elements2 = localScope2.getScope(); List<PsiElement> result = new ArrayList<>(elements2.length); for (final PsiElement element2 : elements2) { if (PsiSearchScopeUtil.isInScope(this, element2)) { result.add(element2); } } return result.isEmpty() ? LocalSearchScope.EMPTY : new LocalSearchScope(result.toArray(PsiElement.EMPTY_ARRAY), null, localScope2.isIgnoreInjectedPsi()); }