if (Flags.isPublic(otherflags)) {
if (Flags.isPublic(otherflags) || member.getDeclaringType().isInterface()) {
	public static boolean isVisible(IMember member, IPackageFragment pack) throws JavaModelException {		int otherflags= member.getFlags();				if (Flags.isPublic(otherflags)) {			return true;		} else if (Flags.isPrivate(otherflags)) {			return false;		}						IPackageFragment otherpack= (IPackageFragment) findParentOfKind(member, IJavaElement.PACKAGE_FRAGMENT);		return (pack != null && pack.equals(otherpack));	}