Regression test for KT-3238. The issue itself is incorrect but test may be useful
Methods reordered
Methods extracted/reordered
Variable renamed
Local variable renamed
GenerationState is constructed with BindingContext, not full AnalyzeExhaust
KotlinCacheManager and LightClassGenerationSupport services added
Retrieve JavaElementFinder from Project's extensions
The slow (synchronized) java.util.Stack replaced by com.intellij.util.containers.Stack
Only allow access to declarations from under a read action (to prevent dead locks)
Unused line removed
Unused parameter removed
Index package FqNames for files
FQN_KEY renamed
Old hack removed
LightClassGenerationSupport helps finding class and package declarations
Index classes refactored: keys are properly references, ensuring that a keys doesn't get confused across classes
Replace toString() with getFqName()
Private constructors for index classes
Index classes by containing package