Fixes name-clash-problem with static methods and JavaExtensions for un-instatiable classes