question: public static boolean isLocalOrAnonymous ( String className ) { int i = className . lastIndexOf ( '$' ) ; if ( i >= 0 && i + 1 < className . length ( ) ) { return Character . isDigit ( className . charAt ( i + 1 ) ) ; } return false ; }
target:  Does a class name appear to designate an anonymous or local (defined inside method) class? Only the name is analyzed. No classes are loaded or looked up.