Try to simplify "Stub and PSI element type mismatch" exception analyze. (cherry picked from commit 11aa71e)
const