CompilerExtension: added validate method