code: public ARecordDeclIR findRecord(SClassDeclIR definingClass,
  			String recordName)
  	{
  		for (ATypeDeclIR typeDecl : definingClass.getTypeDecls())
  		{
  			SDeclIR decl = typeDecl.getDecl();
  
  			if (!(decl instanceof ARecordDeclIR))
  			{
  				continue;
  			}
  
  			ARecordDeclIR recordDecl = (ARecordDeclIR) decl;
  
  			if (recordDecl.getName().equals(recordName))
  			{
  				return recordDecl;
  			}
  		}
  
  		return null;
  	}
docs: This method assumes that the record is defined in definingClass and not a super class