// ĠCopyright Ġ 2 0 0 0 - 2 0 1 9 Ġ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 . workspace . legacy Bridge Ċ Ċ import Ġcom . intellij . openapi . application . Write Action Ċ import Ġcom . intellij . openapi . module . Module Manager Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . openapi . roots . Library Order Entry Ċ import Ġcom . intellij . openapi . roots . Module Root Manager Ċ import Ġcom . intellij . openapi . roots . libraries . Library Tables Registrar Ċ import Ġcom . intellij . workspace . legacy Bridge . intellij . Legacy Bridge File Pointer Provider Ċ import Ġcom . intellij . workspace . legacy Bridge . intellij . Legacy Bridge File Pointer Provider Impl Ċ import Ġcom . intellij . workspace . legacy Bridge . intellij . Legacy Bridge Module Root Component Ċ import Ġcom . intellij . workspace . legacy Bridge . intellij . Legacy Bridge Project Lifecycle Listener Ċ import Ġcom . intellij . workspace . legacy Bridge . libraries . libraries . Legacy Bridge Library Impl Ċ import Ġcom . intellij . workspace . legacy Bridge . libraries . libraries . Legacy Bridge Roots Watcher Ċ import Ġorg . jetbrains . annotations . Api Status Ċ Ċ object ĠLegacy Bridge Test Framework Utils Ġ{ ĊĠ Ġ@ Api Status . Internal ĊĠ Ġfun Ġdrop Caches On Te ardown ( project : ĠProject ) Ġ{ ĊĠĠĠ Ġif Ġ(! Legacy Bridge Project Lifecycle Listener . enabled ( project )) Ġ{ ĊĠĠĠĠĠ Ġreturn ĊĠĠĠ Ġ} ĊĊĠĠĠ ĠWrite Action . run And Wait < RuntimeException > Ġ{ ĊĠĠĠĠĠ Ġfor Ġ( module Ġin ĠModule Manager . getInstance ( project ). modules ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ( Legacy Bridge File Pointer Provider . getInstance ( module ) Ġas ĠLegacy Bridge File Pointer Provider Impl ). dispose And Clear Caches () ĊĠĠĠĠĠĠĠ Ġfor Ġ( order Entry Ġin ĠModule Root Manager . getInstance ( module ). order Entries ) Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġif Ġ( order Entry Ġis ĠLibrary Order Entry ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( order Entry . is Module Level ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ( order Entry . library Ġas ĠLegacy Bridge Library Impl ). file Pointer Provider . dispose And Clear Caches () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ( Module Root Manager . getInstance ( module ) Ġas ĠLegacy Bridge Module Root Component ). drop Caches () ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ( Legacy Bridge File Pointer Provider . getInstance ( project ) Ġas ĠLegacy Bridge File Pointer Provider Impl ). dispose And Clear Caches () ĊĠĠĠĠĠ Ġfor Ġ( library Ġin ĠLibrary Tables Registrar . getInstance (). get Library Table ( project ). libraries ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ( library Ġas ĠLegacy Bridge Library Impl ). file Pointer Provider . dispose And Clear Caches () ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ }