@Override
  public PsiClass @NotNull [] getClasses(@NotNull PsiDirectory dir) {
    LOG.assertTrue(dir.isValid());
    return getPsiClasses(dir, dir.getFiles());
  }
@Override
  public PsiClass @NotNull [] getClasses(@NotNull PsiDirectory dir)