If you create a new custom tool , you can derive a Tool class. But OnStartAtomicAction and OnEndAtomicAction methods are in Utility class which is declared as an internal class and they cannot be accessed in custom versions.