use ensureValid (EA-56712)
remove PSI event nesting because of eager PushedFilePropertiesUpdater (EA-56525)
fold some IJ boilerplate in console