LocalQuickFix (Object... infos) { final PsiExpression expression = (PsiExpression)infos[0]; final PsiClass aClass = PsiUtil.resolveClassInClassTypeOnly(expression.getType()); if (aClass == null) return null; final String name = aClass.getQualifiedName(); if (name == null) return null; return new AddToInspectionOptionListFix<>(this, InspectionGadgetsBundle.message("access.to.static.field.locked.on.instance.fix.name", name), name, tool -> tool.ignoredClasses); }