private boolean expect(ProjectViewTokenType kind){
  if (matches(kind)) {
    return true;
  }
  builder.error(String.format("'%s' expected",kind));
  return false;
}

private boolean expect ( ProjectViewTokenType kind ) { if ( matches ( kind ) ) { return true ; } builder . error ( String . format ( "'%s' expected" , kind ) ) ; return false ; }
consumes the current token if it ' s of the expected type . otherwise , returns false and reports an error .
