if (binding != null && MemberVisibilityAdjustor.hasLowerVisibility(getter.getFlags(), same ? Modifier.NONE : keyword.toFlagValue()) && MemberVisibilityAdjustor.needsVisibilityAdjustments(getter, keyword, adjustments))
if (binding != null && MemberVisibilityAdjustor.hasLowerVisibility(getter.getFlags(), same ? Modifier.NONE : (keyword == null ? Modifier.NONE : keyword.toFlagValue())) && MemberVisibilityAdjustor.needsVisibilityAdjustments(getter, keyword, adjustments))
	protected Expression createInlinedTargetExpression(final CompilationUnitRewrite rewriter, final MethodDeclaration declaration, final Expression original, final Map adjustments, final RefactoringStatus status) throws JavaModelException {		Assert.isNotNull(rewriter);		Assert.isNotNull(declaration);		Assert.isNotNull(original);		Assert.isNotNull(adjustments);		Assert.isNotNull(status);		Assert.isTrue(fTarget.isField());		final ASTRewrite rewrite= fSourceRewrite.getASTRewrite();		final Expression expression= (Expression) ASTNode.copySubtree(rewrite.getAST(), original);		final IJavaElement element= fTarget.getJavaElement();		if (element != null && !Modifier.isPublic(fTarget.getModifiers())) {			final IField field= (IField) fTarget.getJavaElement();			if (field != null) {				boolean same= false;				IMethodBinding binding= declaration.resolveBinding();				if (binding != null) {					final ITypeBinding declaring= binding.getDeclaringClass();					if (declaring != null && Bindings.equals(declaring.getPackage(), fTarget.getType().getPackage()))						same= true;				}				final Modifier.ModifierKeyword keyword= same ? null : Modifier.ModifierKeyword.PUBLIC_KEYWORD;				final String modifier= same ? RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_default") : RefactoringCoreMessages.getString("MemberVisibilityAdjustor.change_visibility_public"); //$NON-NLS-1$//$NON-NLS-2$				if (fUseGetters) {					final IMethod getter= GetterSetterUtil.getGetter(field);					if (getter != null) {						final MethodDeclaration method= ASTNodeSearchUtil.getMethodDeclarationNode(getter, fSourceRewrite.getRoot());						if (method != null) {							binding= method.resolveBinding();							if (binding != null && MemberVisibilityAdjustor.hasLowerVisibility(getter.getFlags(), same ? Modifier.NONE : keyword.toFlagValue()) && MemberVisibilityAdjustor.needsVisibilityAdjustments(getter, keyword, adjustments))								adjustments.put(getter, new MemberVisibilityAdjustor.OutgoingMemberVisibilityAdjustment(getter, keyword, RefactoringStatus.createWarningStatus(RefactoringCoreMessages.getFormattedString("MemberVisibilityAdjustor.change_visibility_method_warning", new String[] { BindingLabels.getFullyQualified(binding), modifier}), JavaStatusContext.create(getter)))); //$NON-NLS-1$							final MethodInvocation invocation= rewrite.getAST().newMethodInvocation();							invocation.setExpression(expression);							invocation.setName(rewrite.getAST().newSimpleName(getter.getElementName()));							return invocation;						}					}				}				if (MemberVisibilityAdjustor.hasLowerVisibility(field.getFlags(), keyword.toFlagValue()) && MemberVisibilityAdjustor.needsVisibilityAdjustments(field, keyword, adjustments))					adjustments.put(field, new MemberVisibilityAdjustor.OutgoingMemberVisibilityAdjustment(field, keyword, RefactoringStatus.createWarningStatus(RefactoringCoreMessages.getFormattedString("MemberVisibilityAdjustor.change_visibility_field_warning", new String[] { BindingLabels.getFullyQualified(fTarget), modifier}), JavaStatusContext.create(field)))); //$NON-NLS-1$			}		}		final FieldAccess access= rewrite.getAST().newFieldAccess();		access.setExpression(expression);		access.setName(rewrite.getAST().newSimpleName(fTarget.getName()));		return access;	}