private static boolean isToplevelClass(String fileName){
  return fileName.indexOf('$') < 0;
}

private static boolean isToplevelClass ( String fileName ) { return fileName . indexOf ( '$' ) < 0 ; }
checks if a given file name represents a toplevel class .
