avoid dlg from write action
[idea/community.git] / java / java-impl / src / com / intellij / refactoring / copy / CopyClassesHandler.java
index b2d8a64b1ef2414cb6a4290f8a22f93d8da9a7c6..6e196eb5d97114cfa47fcaa80946a3d269d84b38 100644 (file)
@@ -365,7 +365,7 @@ public class CopyClassesHandler extends CopyHandlerDelegateBase {
         if (relativePath != null && !relativePath.isEmpty()) {
           finalTarget = WriteAction.compute(() -> buildRelativeDir(targetDirectory, relativePath).findOrCreateTargetDirectory());
         }
-        final PsiFile fileCopy = CopyFilesOrDirectoriesHandler.copyToDirectory(file, getNewFileName(file, copyClassName), finalTarget, choice);
+        final PsiFile fileCopy = CopyFilesOrDirectoriesHandler.copyToDirectory(file, getNewFileName(file, copyClassName), finalTarget, choice, null);
         if (fileCopy != null) {
           createdFiles.add(fileCopy);
         }