boolean () { if (myAdditionalPanels.isEmpty()) { return true; } if (ContainerUtil.all(myAdditionalPanels, p -> p.canClose())) { PsiFile psiFile = getPsiFile(); if (myAdditionalPanels.stream().filter(p -> p.isModified()).peek(TrafficLightRenderer::applyPanel).count() > 0) { if (psiFile != null) { InjectedLanguageManager.getInstance(getProject()).dropFileCaches(psiFile); } myDaemonCodeAnalyzer.restart(); } return true; } return false; }