[Olena-patches] 2429: Help the compiler not to mix up classes and methods.