public static boolean isJavaProject(IProject project) {
		try {
			return project != null && project.hasNature(JavaCore.NATURE_ID);
		}
		catch (CoreException e) {
			EclipseMessageUtils.error("Java project check failed", e);
			return false;
		}
	}
Checks to see if the given project is a Java project.

@param project The project to check.
@return True if the given project is a Java project; otherwise, false.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidraprojectcreator/utils/GhidraProjectUtils.java