boolean (final @NotNull Project project, final Editor editor, final @NotNull PsiElement element) { final PsiElement parent = element.getParent(); return parent instanceof XmlAttributeValue && ColorUtil.fromHex(((XmlAttributeValue)parent).getValue(), null) != null; }