package java;
package java.lang;

import foo.Bar;
import java.lang.Math;
import java.lang.*;

import static foo.Bar.BAZ;
import static java.lang.Math.PI;
import static java.lang.Math.sin;
import static java.lang.Math.*;

----------------------------------------------------

[
	["keyword", "package"],
	["namespace", [
		"java"
	]],
	["punctuation", ";"],
	["keyword", "package"],
	["namespace", [
		"java",
		["punctuation", "."],
		"lang"
	]],
	["punctuation", ";"],

	["keyword", "import"],
	["namespace", [
		"foo",
		["punctuation", "."]
	]],
	["class-name", [
		"Bar"
	]],
	["punctuation", ";"],
	["keyword", "import"],
	["namespace", [
		"java",
		["punctuation", "."],
		"lang",
		["punctuation", "."]
	]],
	["class-name", [
		"Math"
	]],
	["punctuation", ";"],
	["keyword", "import"],
	["namespace", [
		"java",
		["punctuation", "."],
		"lang",
		["punctuation", "."]
	]],
	["operator", "*"],
	["punctuation", ";"],

	["keyword", "import"],
	["keyword", "static"],
	["namespace", [
		"foo",
		["punctuation", "."]
	]],
	["class-name", [
		"Bar"
	]],
	["punctuation", "."],
	"BAZ",
	["punctuation", ";"],
	["keyword", "import"],
	["keyword", "static"],
	["namespace", [
		"java",
		["punctuation", "."],
		"lang",
		["punctuation", "."]
	]],
	["class-name", [
		"Math"
	]],
	["punctuation", "."],
	"PI",
	["punctuation", ";"],
	["keyword", "import"],
	["keyword", "static"],
	["namespace", [
		"java",
		["punctuation", "."],
		"lang",
		["punctuation", "."]
	]],
	["class-name", [
		"Math"
	]],
	["punctuation", "."],
	"sin",
	["punctuation", ";"],
	["keyword", "import"],
	["keyword", "static"],
	["namespace", [
		"java",
		["punctuation", "."],
		"lang",
		["punctuation", "."]
	]],
	["class-name", [
		"Math"
	]],
	["punctuation", "."],
	"*",
	["punctuation", ";"]
]

----------------------------------------------------

Checks for packages.