StaticConstructor analyser and code fix.