MethodInvocation method= methodInvocations[i]; if (method.getExpression() != null) continue; IMethodBinding mb= resolveMethodBinding(method);
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);
	private void modifyAccessToMethodsFromEnclosingInstance(TextChangeManager manager, MethodInvocation[] methodInvocations) throws CoreException {		for (int i= 0; i < methodInvocations.length; i++) {			MethodInvocation method= methodInvocations[i];			if (method.getExpression() != null)				continue;			IMethodBinding mb= resolveMethodBinding(method);			if (mb == null)				continue;			String text;			if (isStatic(mb))				text= JavaModelUtil.getTypeQualifiedName(getEnclosingType()) + '.';			else				text= createReadAccessForEnclosingInstance() + '.';			int offset= method.getStartPosition();			manager.get(getInputTypeCu()).addTextEdit("Update method invocation", SimpleTextEdit.createInsert(offset, text));		}	}