boolean (@NotNull Language language) { PsiClass aClass = getClassToProcess(); if (ReadAction.compute(() -> aClass.isEnum())) { return language == aClass.getLanguage(); } return super.shouldSearchInLanguage(language); }