docs: private void fixDeclaringClass(DeclarationExpression newDeclExpr) {
          if (newDeclExpr.getDeclaringClass() == null && currentMethod != null) {
              newDeclExpr.setDeclaringClass(currentMethod.getDeclaringClass());
          }
      }