if (element.getElementType() == IJavaElement.JAVA_PROJECT) return true;
	private static boolean checkJavaElement(IJavaElement element) {			IJavaProject project= element.getJavaProject();		try {			if (!project.isOnClasspath(element))				return false;			IProject resourceProject= project.getProject();			if (resourceProject == null)				return false;			IProjectNature nature= resourceProject.getNature(JavaCore.NATURE_ID);			// We have a Java project			if (nature != null)				return true;		} catch (CoreException e) {		}		return false;	}