private static boolean isLocallyDeclaredOutOf(@Nullable PsiElement element,
                                                @NotNull VariableDescriptor descriptor,
                                                @NotNull GrControlFlowOwner flowOwner) {
    GrVariable variable = resolveToLocalVariable(element, descriptor.getName());
    if (variable == null) return false;
    return !PsiImplUtilKt.isDeclaredIn(variable, flowOwner);
  }
private static boolean isLocallyDeclaredOutOf(@Nullable PsiElement element,
                                                @NotNull VariableDescriptor descriptor,
                                                @NotNull GrControlFlowOwner flowOwner)