@Override
      public Visibility isDeclarationVisible(PsiElement declaration, PsiElement place) {
        return declaration.getManager().isInProject(declaration) ? Visibility.VISIBLE : Visibility.NOT_VISIBLE;
      }
@Override
      public Visibility isDeclarationVisible(PsiElement declaration, PsiElement place)