just create SourceRange instance, instead of anonymous ISourceRange implementation
diff --git a/core/plugins/org.eclipse.dltk.core/utils/org/eclipse/dltk/utils/TextUtils.java b/core/plugins/org.eclipse.dltk.core/utils/org/eclipse/dltk/utils/TextUtils.java
index 1997a60..6364a88 100644
--- a/core/plugins/org.eclipse.dltk.core/utils/org/eclipse/dltk/utils/TextUtils.java
+++ b/core/plugins/org.eclipse.dltk.core/utils/org/eclipse/dltk/utils/TextUtils.java
@@ -609,18 +609,6 @@
 
 		sOffset += start;
 
-		return createSourceRange(sOffset, sOffset + line.trim().length());
-	}
-
-	private static ISourceRange createSourceRange(final int start, final int end) {
-		return new ISourceRange() {
-			public int getLength() {
-				return end - start;
-			}
-
-			public int getOffset() {
-				return start;
-			}
-		};
+		return new SourceRange(sOffset, line.trim().length());
 	}
 }