Statically check a Java class to make sure it's not going to do something suspicious