void (PsiExpression initializerExpression, BaseExpressionToFieldHandler.InitializationPlace ourLastInitializerPlace) { if (initializerExpression != null) { setEnabledInitializationPlaces(initializerExpression); if (!myAllowInitInMethod) { myRbInCurrentMethod.setEnabled(false); } } else { myRbInConstructor.setEnabled(false); myRbInCurrentMethod.setEnabled(false); myRbInFieldDeclaration.setEnabled(false); if (myRbInSetUp != null) myRbInSetUp.setEnabled(false); } final PsiMethod setUpMethod = TestFrameworks.getInstance().findSetUpMethod(myParentClass); if (myInitializerExpression != null && PsiTreeUtil.isAncestor(setUpMethod, myInitializerExpression, false) && myRbInSetUp.isEnabled() || ourLastInitializerPlace == BaseExpressionToFieldHandler.InitializationPlace.IN_SETUP_METHOD && TestFrameworks.getInstance().isTestClass(myParentClass) && myRbInSetUp.isEnabled()) { myRbInSetUp.setSelected(true); } else if (ourLastInitializerPlace == BaseExpressionToFieldHandler.InitializationPlace.IN_CONSTRUCTOR) { if (myRbInConstructor.isEnabled()) { myRbInConstructor.setSelected(true); } else { selectInCurrentMethod(); } } else if (ourLastInitializerPlace == BaseExpressionToFieldHandler.InitializationPlace.IN_FIELD_DECLARATION) { if (myRbInFieldDeclaration.isEnabled()) { myRbInFieldDeclaration.setSelected(true); } else { selectInCurrentMethod(); } } else { selectInCurrentMethod(); } }