1. A computer-implemented method of creating a recipe for inspecting a specimen, the method comprising: directly deriving, from design data library usable for manufacturing the specimen, data informative of basic elements and hierarchical levels thereof, the derived data representing design data; upon selecting among the basic elements one or more basic element of interest, identifying therebetween at least one basic element that cannot be decomposed in any other basic elements among the selected basic elements, thus giving rise to at least one basic cell characterized by respective hierarchical level; processing the design data to extract location information and periodicity values characterizing one or more areas being, in coordinates of a top hierarchical level, periodical with respect to the at least one basic cell, wherein extracting the periodicity values is provided with no need in obtaining data from an image of the specimen; and processing the location information and the extracted periodicity values to generate real-size parameters for cell-to-cell inspection, thereby enabling automated creation of recipe for inspecting the specimen.