@Override public void visitPackage(final @NotNull PsiPackage aPackage) {
    final PsiDirectory[] dirs = aPackage.getDirectories();

    for (PsiDirectory dir : dirs) {
      final PsiFile[] files = dir.getFiles();

      for (final PsiFile file : files) {
        if (file instanceof PsiJavaFile) {
          super.visitJavaFile(((PsiJavaFile)file));
        }
      }
    }
  }
@Override public void visitPackage(final @NotNull PsiPackage aPackage)