// ĠCopyright Ġ 2 0 0 0 - 2 0 2 0 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ package Ġcom . intellij . file Prediction Ċ Ċ import Ġcom . intellij . openapi . application . Application Manager Ċ import Ġcom . intellij . openapi . file Editor . File Editor Manager Event Ċ import Ġcom . intellij . openapi . file Editor . File Editor Manager Listener Ċ import Ġcom . intellij . openapi . util . registry . Registry Ċ Ċ internal Ġclass ĠFile Prediction Editor Manager Listener Ġ: ĠFile Editor Manager Listener Ġ{ ĊĠ Ġoverride Ġfun Ġselection Changed ( event : ĠFile Editor Manager Event ) Ġ{ ĊĠĠĠ Ġval Ġnew File Ġ= Ġevent . new File Ġ?: Ġreturn ĊĠĠĠ Ġif Ġ( should Record ()) Ġ{ ĊĠĠĠĠĠ ĠFile Prediction Handler . getInstance ( event . manager . project )?. on File Selected ( new File ) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġshould Record () Ġ= ĠApplication Manager . getApplication (). is E AP Ġ&& ĠRegistry . get (" file Prediction . calculate . features "). as Boolean () Ċ }