void (@NotNull PsiReferenceRegistrar registrar) { final XmlAttributeValuePattern attributeValueInFxml = XmlPatterns.xmlAttributeValue().inVirtualFile( virtualFile().withExtension(JavaFxFileTypeFactory.FXML_EXTENSION)); registrar.registerReferenceProvider(XmlPatterns.xmlAttributeValue().withValue(string().startsWith("%")) .withParent(XmlPatterns.xmlAttribute().andNot( XmlPatterns.xmlAttribute().withName( FxmlConstants.FX_VALUE, FxmlConstants.FX_CONSTANT, FxmlConstants.FX_FACTORY))) .and(attributeValueInFxml), new JavaFxResourcePropertyReferenceProvider()); }