void (@NotNull PsiFile file) { super.visitFile(file); if (!(file instanceof XmlFile)) { return; } @NonNls final String fileName = file.getName(); if (!"package.html".equals(fileName)) { return; } final PsiDirectory directory = file.getContainingDirectory(); if (directory == null) { return; } final String aPackage = getPackage(directory); if (aPackage == null) { return; } final boolean exists = directory.findFile("package-info.java") != null; registerError(file, aPackage, exists); }