List<KtNamedDeclaration> (Collection<KtFile> sourceFiles) { return CollectionsKt.filterIsInstance( CollectionsKt.flatMap( sourceFiles, KtPsiUtilKt::getFileOrScriptDeclarations ), KtNamedDeclaration.class ); }