boolean (final BaseInjection template) { if (!Objects.equals(getInjectedLanguageId(), template.getInjectedLanguageId())) return false; for (InjectionPlace other : template.getInjectionPlaces()) { if (ArrayUtil.contains(other, myPlaces)) return true; } return false; }