code: public static boolean isVisible(JvmDeclaredType fromType, JvmMember target) {
  		switch (target.getVisibility()) {
  		case DEFAULT:
  			return target.getDeclaringType().getPackageName().equals(fromType.getPackageName());
  		case PROTECTED:
  		case PUBLIC:
  			return true;
  		case PRIVATE:
  		default:
  		}
  		return false;
  	}
docs: Replies if the target feature is visible from the type.
  
  @param fromType - the type from which the feature visibility is tested.
  @param target - the feature to test for the visibility.
  @return <code>true</code> if the given type can see the target feature.