Collection<PsiReference> (final Property property, final Module module) { final Collection<PsiReference> references = Collections.synchronizedList(new ArrayList<>()); ProgressManager.getInstance().runProcessWithProgressSynchronously( (Runnable)() -> ReferencesSearch.search(property).forEach(psiReference -> { PsiMethod method = PsiTreeUtil.getParentOfType(psiReference.getElement(), PsiMethod.class); if (method == null || !AsmCodeGenerator.SETUP_METHOD_NAME.equals(method.getName())) { references.add(psiReference); } return true; }), UIDesignerBundle.message("edit.text.searching.references"), false, module.getProject() ); return references; }