package Ġcom . paul meth f essel . bp . ide . events Ċ Ċ import Ġcom . intellij . openapi . application . invoke Later Ċ import Ġcom . intellij . openapi . file Editor . File Editor Ċ import Ġcom . intellij . openapi . file Editor . File Editor Manager Ċ import Ġcom . intellij . openapi . file Editor . File Editor Manager Listener Ċ import Ġcom . intellij . openapi . file Editor . File Editor Provider Ċ import Ġcom . intellij . openapi . project . Project Manager Ċ import Ġcom . intellij . openapi . util . Pair Ċ import Ġcom . intellij . openapi . vfs . Virtual File Ċ import Ġcom . intellij . psi . Psi Manager Ċ import Ġcom . intellij . test Framework . property Based . Psi Index Consistency Tester Ċ import Ġcom . paul meth f essel . bp . ide . services . lsp Ċ Ċ class ĠFile Opened Handler : ĠFile Editor Manager Listener Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġregister () Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġproject Ġ= ĠProject Manager . getInstance (). open Projects . first OrNull () Ġ?: Ġreturn ĊĠĠĠĠĠĠĠĠĠĠĠ Ġproject . message Bus . connect (). subscribe ( File Editor Manager Listener . FILE _ EDITOR _ MANAGER , ĠFile Opened Handler ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġfile Opened Sync ( ĊĠĠĠĠĠĠĠ Ġsource : ĠFile Editor Manager , ĊĠĠĠĠĠĠĠ Ġfile : ĠVirtual File , ĊĠĠĠĠĠĠĠ Ġeditors : ĠPair < Array < File Editor >, ĠArray < File Editor Provider >> ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpsi File Ġ= ĠPsi Manager . getInstance ( source . project ). find File ( file ) Ġ?: Ġreturn ĊĠĠĠĠĠĠĠ Ġinvoke Later Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlsp . analyze For Reload ( psi File ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ