GROOVY-7214: Allow private static methods in traits