String text; if (isStatic(mb)) text= getTypeOfEnclosingInstanceField() + '.'; else text= createReadAccessForEnclosingInstance() + '.';
String text= createAccessToEnclosingInstanceFieldText(methodInvocation, mb);
	private void modifyAccessToMethodsFromEnclosingInstance(TextChangeManager manager, MethodInvocation[] methodInvocations) throws CoreException {		for (int i= 0; i < methodInvocations.length; i++) {			int length= 0;			MethodInvocation methodInvocation= methodInvocations[i];			if (methodInvocation.getExpression() != null){				if ((methodInvocation.getExpression() instanceof ThisExpression) && ((ThisExpression)methodInvocation.getExpression()).getQualifier() != null)					length= methodInvocation.getName().getStartPosition() - methodInvocation.getStartPosition();				else					continue;			}				IMethodBinding mb= resolveMethodBinding(methodInvocation);			if (mb == null)				continue;			String text;			if (isStatic(mb))				text= getTypeOfEnclosingInstanceField() + '.';			else				text= createReadAccessForEnclosingInstance() + '.';			int offset= methodInvocation.getStartPosition();			manager.get(getInputTypeCu()).addTextEdit(RefactoringCoreMessages.getString("MoveInnerToTopRefactoring.update_method_invocation"), SimpleTextEdit.createReplace(offset, length, text)); //$NON-NLS-1$		}	}