Don't implement Plugin in rule sources used in tests if it's not necessary

+review REVIEW-5239
Annotate deprecated methods with @java.lang.Deprecated

+review REVIEW-5239
Add javadoc links for some references to deprecated methods in deprecation section of release notes

+review REVIEW-5239