private @Nullable PsiDirectory getCachedDirectory(VirtualFile parent) {
    return parent == null ? null : myFileManager.getCachedDirectory(parent);
  }
private @Nullable PsiDirectory getCachedDirectory(VirtualFile parent)