private static boolean isDirectlyInsideClassBody(@NotNull PyReferenceExpression referenceExpression) {
    return referenceExpression.getParent() instanceof PyExpressionStatement statement &&
           ScopeUtil.getScopeOwner(statement) instanceof PyClass;
  }
private static boolean isDirectlyInsideClassBody(@NotNull PyReferenceExpression referenceExpression)