Added rules for dynamic and static method calls in Java.