Unit: made method protected so the compiler can use it in ceylon/ceylon-compiler#1908