boolean () { for (StackTraceElement element : Thread.currentThread().getStackTrace()) { String className = element.getClassName(); if (className.contains("com.intellij.util.indexing.IndexInfrastructure") || className.contains("com.intellij.psi.impl.search.IndexPatternSearcher") || className.contains("com.jetbrains.performancePlugin.ProjectLoaded")) { return true; } } return false; }