@NotNull
  default Collection<PsiElement> getDeclarations() {
    PsiElement declaration = getDeclaration();
    return declaration != null ? Collections.singleton(declaration)
                               : Collections.emptyList();
  }
@NotNull
  default Collection<PsiElement> getDeclarations()