if (type.getFields().length == 0) return false; if (type.getCompilationUnit() == null) return false; return true;
return canEnableOn(type.getFields());
	private static boolean canEnableOn(IType type) throws JavaModelException {		if (type == null)			return false;		if (type.getFields().length == 0)			return false;		if (type.getCompilationUnit() == null)			return false;		return true;	}