public static RoadGraph findNearestForStation(Point p) {
        RoadGraph nearestPoint = null;
        double minDistance = Double.POSITIVE_INFINITY;
        double dist;
        for (RoadGraph i : JMaps.getRoadGraphList()) {
            dist = Math.sqrt((i.getPoint().x - p.x) * (i.getPoint().x - p.x) + (i.getPoint().y - p.y) * (i.getPoint().y - p.y));
            if (dist < minDistance) {
                minDistance = (int) dist;
                nearestPoint = i;
                i.setImportant(true);
            }
        }
        return nearestPoint;
    }