boolean (PsiElement initializer) { ScopeOwner scope = PsiTreeUtil.getParentOfType(initializer, ScopeOwner.class); ResolvingVisitor visitor = new ResolvingVisitor(scope); initializer.accept(visitor); return visitor.hasLocalScopeDependencies; }