withInterfaceOrObjectDeclaration

List containing declarations with the specified interface or object declaration.

Return

A list containing declarations with the specified interface or object declaration.

Parameters

predicate

The predicate function to determine if a interface or object declaration satisfies a condition.