class FileModelSource extends FileSource implements ModelSource3 {

    /**
     * Creates a new model source backed by the specified file.
     *
     * @param pomFile The POM file, must not be {@code null}.
     * @deprecated Use {@link #FileModelSource(Path)} instead.
     */
    @Deprecated
    public FileModelSource(File pomFile) {
        super(pomFile);
    }

    /**
     * Creates a new model source backed by the specified file.
     *
     * @param pomPath The POM file, must not be {@code null}.
     * @since 4.0.0
     */
    public FileModelSource(Path pomPath) {
        super(pomPath);
    }

    /**
     *
     * @return the file of this source
     *
     * @deprecated instead use {@link #getFile()}
     */
    @Deprecated
    public File getPomFile() {
        return getFile();
    }

    @Override
    public ModelSource3 getRelatedSource(ModelLocator locator, String relPath) {
        relPath = relPath.replace('\\', File.separatorChar).replace('/', File.separatorChar);

        Path path = getPath().getParent().resolve(relPath);

        Path relatedPom = locator.locateExistingPom(path);

        if (relatedPom != null) {
            return new FileModelSource(relatedPom.normalize());
        }

        return null;
    }

    @Override
    public URI getLocationURI() {
        return getPath().toUri();
    }

    @Override
    public boolean equals(Object obj) {<FILL_FUNCTION_BODY>}

    @Override
    public int hashCode() {
        return getPath().hashCode();
    }
}

        if (this == obj) {
            return true;
        }

        if (obj == null) {
            return false;
        }

        if (!FileModelSource.class.equals(obj.getClass())) {
            return false;
        }
        FileModelSource other = (FileModelSource) obj;
        return getPath().equals(other.getPath());
    
<methods>public void <init>(java.io.File) ,public void <init>(java.nio.file.Path) ,public boolean equals(java.lang.Object) ,public java.io.File getFile() ,public java.io.InputStream getInputStream() throws java.io.IOException,public java.lang.String getLocation() ,public java.nio.file.Path getPath() ,public int hashCode() ,public java.lang.String toString() <variables>private final non-sealed int hashCode,private final non-sealed java.nio.file.Path path