PsiReference[] (final @NotNull PsiClass aClass, final XmlAttributeValue xmlAttributeValue, ProcessingContext context) { final String name = xmlAttributeValue.getValue(); PsiMember fieldOrGetterMethod = aClass.findFieldByName(name, true); if (fieldOrGetterMethod == null) { final PsiMethod[] methods = aClass.findMethodsByName(name, true); for (PsiMethod method : methods) { if (method.getParameterList().isEmpty()) { fieldOrGetterMethod = method; break; } } } return new PsiReference[]{ new JavaFxControllerFieldRef(xmlAttributeValue, fieldOrGetterMethod, aClass), new AttributeValueSelfReference(xmlAttributeValue)}; }