Generate static accessors fro protected functions in different packages
 #KT-4617 Fixed