public class X implements SelectAction{ public void setSelected(User user){ //overriden version } public static void main(String[] args){ new X().setSelectedId(1l); } } interface SelectAction { public void setSelectedId(I id); public void setSelected(T object); } aspect SelectActionAspect { public void SelectAction.setSelected(T object){ //do nothing } public void SelectAction.setSelectedId(I id){ setSelected(null); } } class User {}