ignore .idea and check for null hooks