PsiFile (VirtualFile copyVFile, VirtualFile vFile) { PsiFile copyPsi = myManager.findFile(copyVFile); if (copyPsi == null) throw new IncorrectOperationException("Could not find file " + copyVFile + " after copying " + vFile); return copyPsi; }