void (@NotNull ActionContext context, @NotNull PsiPackageStatement packageStatement, @NotNull ModPsiUpdater updater) { PsiPackage aPackage = getPackage(packageStatement); if (aPackage == null) return; PsiFile packageInfoFile = getPackageInfoFile(aPackage); if (packageInfoFile == null) { packageInfoFile = updater.getWritable(context.file().getContainingDirectory()).createFile(PsiPackage.PACKAGE_INFO_FILE); } if (PsiPackage.PACKAGE_INFO_FILE.equals(packageInfoFile.getName())) { PsiFile modifiedPackageInfoFile = moveAnnotationsAndGetFile(packageStatement, updater.getWritable(packageInfoFile)); if (modifiedPackageInfoFile != null) { updater.moveTo(modifiedPackageInfoFile); } } deleteAnnotations(packageStatement); }