Dead code dropped
open capture at top level only when prepare variable type (IDEA-22005)
NPE (IDEA-106637)