boolean (final PsiElement element) { ProgressManager.checkCanceled(); for (InjectionPlace place : myPlaces) { if (place.isEnabled() && place.getElementPattern() != null && place.getElementPattern().accepts(element)) { return true; } } return false; }