FieldDescriptor[] () { int[] rows = getCheckedRows(); FieldDescriptor[] descriptors = new FieldDescriptor[rows.length]; for (int idx = 0; idx < rows.length; idx++) { String getterName = myGetterNames[rows[idx]]; PsiField field = myFields[rows[idx]]; String setterName = mySetterNames[rows[idx]]; descriptors[idx] = new FieldDescriptorImpl( field, getterName, setterName, isToEncapsulateGet() ? myHelper.generateMethodPrototype(field, getterName, true) : null, isToEncapsulateSet() ? myHelper.generateMethodPrototype(field, setterName, false) : null ); } return descriptors; }