Allow any file extension

Two main things here:

- Allow any Java-format file extension. Removes the strict requirement for .java files.
- Fixes a bug in checking usages. The target affected class info should check if its class name matches the input class name.