NodeListener interface parametrized for the return type