boolean (Set<PsiField> fields) { if (hasSetUpChoice()) { nextField: for (PsiField field : fields) { if (field.hasModifierProperty(PsiModifier.FINAL)) continue; final PsiMethod setUpMethod = TestFrameworks.getInstance().findSetUpMethod((field).getContainingClass()); if (setUpMethod != null) { for (PsiReference reference: ReferencesSearch.search(field, new LocalSearchScope(setUpMethod))) { PsiElement element = reference.getElement(); if (element instanceof PsiExpression && !PsiUtil.isAccessedForWriting((PsiExpression)element)) { continue nextField; } } return false; } } return true; } return false; }