boolean (@NotNull ComplexPackagingElement<?> element) { final ComplexPackagingElementType<?> type = (ComplexPackagingElementType<?>)element.getType(); return myTypesToSubstitute.contains(type) || mySubstituted.contains(element); }