fix java ImportCommand edge case when separating imports

fixes #286