withInterfaceOrObject

List containing declarations that have at least one interface or object satisfying the provided predicate.

Return

A list containing declarations with at least one interface or object satisfying the predicate.

Parameters

includeNested

Whether to include nested interfaces and objects.

predicate

A function that defines the condition to be met by an interface or object declaration.