/** Replies if ambiguity could be removed for the given feature. * * @param candidate the candidate. * @return {@code true} if ambiguity could be removed. */ @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"}) protected boolean isIgnorableCallToFeature(ILinkingCandidate candidate) { final JvmIdentifiableElement feature = candidate.getFeature(); // // @Deprecated // if (feature instanceof JvmOperation) { JvmAnnotationTarget target = (JvmOperation) feature; JvmAnnotationReference reference = this.annotationLookup.findAnnotation(target, Deprecated.class); if (reference == null) { do { target = EcoreUtil2.getContainerOfType(target.eContainer(), JvmAnnotationTarget.class); if (target != null) { reference = this.annotationLookup.findAnnotation(target, Deprecated.class); } } while (reference == null && target != null); } if (reference != null) { return true; } } return false; }