code: private List<IFunctionSymbol> maybeAddPrivateFunctionsIfSuperInSamePackage( String name, List<IFunctionSymbol> functions )
    {
      ICompilableTypeInternal gsClass = getGosuClass();
      if( gsClass == null )
      {
        return functions;
      }
  
      IType supertype = gsClass.getSupertype();
      if( gsClass instanceof IGosuClass && supertype != null )
      {
        if( TypeLord.getOuterMostEnclosingClass( supertype ).getNamespace().equals(
            TypeLord.getOuterMostEnclosingClass( gsClass ).getNamespace() ) )
        {
          functions = new ArrayList<>( functions );
          addAllNonstaticPrivateMethods( name, ((IGosuClassInternal)gsClass).getSuperClass(), functions );
        }
      }
      return functions;
    }
docs: the super class is in the same package as the subclass.