NodeKind (@NotNull String nodeKindName) { NodeKind result = ourAllNodeKinds.get(nodeKindName); if (result == null) { throw new IllegalArgumentException("Unknown node kind " + nodeKindName); } return result; }