Applied code changes to fresh clone.

Change from:
`final List<NodeType> nodeTypesList = new ArrayList<NodeType>();`
to:
`final List<NodeType> nodeTypesList = new ArrayList<>();`