Module () { if (myModule.isDisposed()) { myModule = ModuleUtilCore.findModuleForFile(myFile, myProject); if (myModule == null) { throw new IllegalArgumentException("No module for file " + myFile); } } return myModule; }