private Stream < ImportSnippet > importSnippets ( ) { return state . keyMap . importKeys ( ) . map ( key -> ( ImportSnippet ) getSnippet ( key ) ) . filter ( sn -> sn != null && state . status ( sn ) . isDefined ( ) ) ; }
Compute the set of imports to prepend to a snippet