Changing accept() method visibility