void (@Nullable RefEntity refEntity, CommonProblemDescriptor @NotNull ... commonProblemDescriptors) { if (!(refEntity instanceof RefElement)) return; PsiElement element = ((RefElement)refEntity).getPsiElement(); convertToProblemDescriptors(element, commonProblemDescriptors, result); }