code: protected static Assignment findAssignmentFromTerminalPattern(EObject rule, String pattern) {
  		return IterableExtensions.findFirst(GrammarUtil.containedAssignments(rule),
  				assignment -> nameMatches(assignment.getTerminal(), pattern));
  	}
docs: Replies the first assignement with the given name in the given rule.
  
  @param rule the rule.
  @param pattern pattern for the name of the terminal.
  @return the assignment or <code>null</code>.