Add specific subclass for different node types
Differential Revision: https://phabricator.kde.org/D9173