boolean (final ReferenceType refType) { final String name = refType.name(); final int index = name.lastIndexOf(myLocalClassShortName); if (index < 0) { return false; } for (int idx = index - 1; idx >= 0; idx--) { final char ch = name.charAt(idx); if (ch == '$') { return idx < (index - 1); } if (!Character.isDigit(ch)) { return false; } } return false; }