I will change the question: there are two projects with different structure. It is necessary to transfer several interrelated classes from one project to another. When migrated to an intellij idea using Refactor -> Copy within the classes, the path and import do not change automatically. Is there a way to transfer the class to another project in the intellij idea so that the package inside the class changes automatically? For example: there was a package com.project.system.business; became: package project1.system1.business; therefore, so that imports change automatically

  • show the structure of your project - Mikhail Vaysman
  • Was: com \ project \ car \ (and here are several folders with classes), and in mavena ... \ src \ main \ java \ car (and here are several folders with classes), i.e. the names of packege inside classes should change - Elena
  • one
    Update your question according to the guidelines for keeping discussions on Stack Overflow , instead of posting comments. - Mikhail Vaysman

0