private static boolean inSameScope(@Nullable PsiElement e1, @Nullable PsiElement e2) {
      if (e1 == null || e2 == null) return false;
      ScopeOwner o1 = ScopeUtil.getScopeOwner(e1);
      ScopeOwner o2 = ScopeUtil.getScopeOwner(e2);
      return o1 != null && o1 == o2;
    }
private static boolean inSameScope(@Nullable PsiElement e1, @Nullable PsiElement e2)