Makelocalfunctionstaticcoderefactoringprovider Crashes Casting

Makelocalfunctionstaticcoderefactoringprovider Crashes Casting