WriteDetector added simple declareVariables method()

You forgot to added it