void (PsiDirectory targetDirectory) { final PsiDirectory subdirectory = targetDirectory.findSubdirectory(packageName); assert subdirectory != null; ApplicationManager.getApplication().runWriteAction(() -> { subdirectory.createFile(EMPTY_TXT); }); }