void (@NotNull UReferenceExpression expression) { if (isAwtColorConstantReference(expression) && isJBColorClassAccessible(holder) && !isUsedAsJBColorConstructorParameter(expression)) { PsiElement sourcePsi = expression.getSourcePsi(); if (sourcePsi != null) { holder.registerProblem(sourcePsi, DevKitBundle.message("inspections.awt.color.used"), new ConvertToJBColorConstantQuickFix()); } } }