if (innerCreatorContext != null) {
TerminalNode typeIdentifierNode =
getTerminalNode(innerCreatorContext, JavaParser.Identifier);
NonWildcardTypeArgumentsOrDiamondContext nonWildcardTypeArgumentsOrDiamondContext =
getChild(innerCreatorContext, NonWildcardTypeArgumentsOrDiamondContext.class);
TypeWithArguments typeWithArguments =
createNode(typeIdentifierNode,
nonWildcardTypeArgumentsOrDiamondContext == null
? typeIdentifierNode
: nonWildcardTypeArgumentsOrDiamondContext,
TypeWithArguments.class);
typeWithArguments.setIdentifiersWithTypeArguments(
convertIdentifiersWithTypeArguments(innerCreatorContext));
newInvocation.setType(typeWithArguments);
ClassCreatorRestContext classCreatorRestContext =
getChild(innerCreatorContext, ClassCreatorRestContext.class);