It would be nice to move this check to an own method like `validatePublicClass(...)` with if (fStaticMembers && !isDeclaringClassPublic(member). `validateStatic(...)` should validate the members static modifier only. (The current method names have room for improvement. If you have any suggestions, feel free to add a comment or change it in your commit.)