@Override
  public @NotNull PsiElement getDeclarationScope() {
    GrClosableBlock smartClosure = myClosure.getElement();
    return smartClosure != null ? smartClosure : super.getDeclarationScope();
  }
@Override
  public @NotNull PsiElement getDeclarationScope()