Bug 13242 quick fix: method name not offered
void d(){ class D{ void fs(){ dsss(); //error }; } } d is not offered as a fix
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NameMatcher.java
while (k > i && isSimilarChar(name1.charAt(k - 1), name2.charAt(k + diff - 1))) {
			k--;
			nMatched++;
		}
		
		if (name2len - nMatched > nMatched) {
			return -1;
		}
		
		int tolerance= name1len / 4 + 1;
		return (tolerance - (k - i)) * 256 / tolerance;
	}
	
	private static boolean isSimilarChar(char ch1, char ch2) {
		return Character.toLowerCase(ch1) == Character.toLowerCase(ch2);
	}
	
	private static void test(String name1, String name2) {
		int sim= getSimilarity(name1, name2);
		System.out.println(name1 + " - " + name2 + " : " + sim); 
	}
	
	public static void main(String[] arguments) {
		test("runner", "gunner"); 
		test("rundner", "gunner"); 
		test("rundner", "rund"); 
		test("test", "rund"); 
	}
}