package Ġkotlin ui plugin . actions čĊč Ċ import Ġcom . intellij . openapi . components . Service Manager č Ċ import Ġcom . intellij . openapi . components . service č Ċ import Ġcom . intellij . openapi . module . Module Util č Ċ import Ġcom . intellij . openapi . project . Project č Ċ import Ġcom . intellij . openapi . vfs . Virtual File č Ċ import Ġkotlin ui plugin . components . Project Component č Ċ import Ġkotlin ui plugin . services . Preview Module Service č Ċ import Ġjavax . inject . Inject čĊč Ċ class ĠPreview Builder Locator Ġ@ Inject Ġconstructor ( čĊĠĠĠ Ġprivate Ġval Ġbuilder : ĠPreview Builder , čĊĠĠĠ Ġprivate Ġval Ġproject : ĠProject , čĊĠĠĠ Ġprivate Ġval Ġcomponent : ĠProject Component č Ċ ) Ġ{ čĊĠĠĠ Ġfun Ġload ( project File : ĠVirtual File ) Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġmodule Ġ= ĠModule Util . find Module For File ( project File , Ġproject ) Ġ?: Ġreturn čĊĠĠĠĠĠĠĠ Ġval Ġsvc Ġ= Ġmodule . getService ( Preview Module Service :: class . java ) čĊĠĠĠĠĠĠĠ Ġsvc . work ( project File ) čĊĠĠĠ Ġ} č Ċ }