extension methods javafication