question: public static boolean isValidImportString ( String s ) { if ( s . equals ( "*" ) ) return true ; boolean valid = true ; String t = s ; int index = t . indexOf ( '*' ) ; if ( index != - 1 ) { if ( index == t . length ( ) - 1 ) { if ( index - 1 >= 0 ) { valid = t . charAt ( index - 1 ) == '.' ; t = t . substring ( 0 , t . length ( ) - 2 ) ; } } else return false ; } if ( valid ) { String [ ] javaIds = t . split ( "\\." , t . length ( ) + 2 ) ; for ( String javaId : javaIds ) valid &= SourceVersion . isIdentifier ( javaId ) ; } return valid ; }
target:  Return true if the argument string is a valid import-style string specifying claimed annotations; return false otherwise.