The classical account of literary borrowing considers prose or verse that takes another writer's expression or meaning. Sometimes wording and order are reproduced; sometimes wording is modified; and sometimes only the underlying idea survives in the new composition.
The distinctions turn on wording, meaning, order, and attribution. Similar ideas alone do not establish a writer's intent or prove unauthorized taking; such judgments require separate evidence about authorship and transmission.