Fix MPS-18247 Paste as Java Class makes inner classes static.