// ĠCopyright Ġ 2 0 0 0 - 2 0 1 8 Ġ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 . jetbrains . extensions . python Ċ Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . openapi . vfs . Virtual File Ċ import Ġcom . intellij . psi . Psi FileSystem Item Ċ import Ġcom . intellij . psi . Psi Manager ĊĊ Ċ fun ĠVirtual File . to Psi ( project : ĠProject ): ĠPsi FileSystem Item ? Ġ{ ĊĠ Ġval Ġmanager Ġ= ĠPsi Manager . getInstance ( project ) ĊĠ Ġreturn Ġif Ġ( this . isDirectory ) Ġmanager . find Directory ( this ) Ġelse Ġmanager . find File ( this ) Ċ Ċ }