void (@NotNull UElement sourceNode, @NotNull PsiClass instantiatedClass, @Nullable PsiMethod constructor, @Nullable UClass subclassDeclaration) { if (constructor != null) { if (JavaDeprecationUtils.isDeprecated(constructor, sourceNode.getSourcePsi()) && myForRemoval == isForRemovalAttributeSet(constructor)) { checkTargetDeprecated(sourceNode, constructor); return; } } if (isDefaultConstructorDeprecated(instantiatedClass)) { PsiElement elementToHighlight = sourceNode.getSourcePsi(); if (elementToHighlight == null) { return; } String description = JavaErrorBundle.message(myForRemoval ? "marked.for.removal.default.constructor" : "deprecated.default.constructor", instantiatedClass.getQualifiedName()); myHolder.registerProblem(elementToHighlight, description); } }