Change method getConstants() that now return instance of ConstantScanner